mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Disable codec tone-mapping on Fold 4 API 33
The codec plugin sets crop values incorrectly. PiperOrigin-RevId: 547160088
This commit is contained in:
parent
2afcf99591
commit
7df09fe4b7
1 changed files with 7 additions and 0 deletions
|
|
@ -184,6 +184,13 @@ public final class DefaultDecoderFactory implements Codec.DecoderFactory {
|
||||||
// works on PQ (see b/282791751#comment7).
|
// works on PQ (see b/282791751#comment7).
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (SDK_INT < 34
|
||||||
|
&& colorTransfer == C.COLOR_TRANSFER_ST2084
|
||||||
|
&& Util.MODEL.startsWith("SM-F936")) {
|
||||||
|
// The Samsung Fold 4 HDR10 codec plugin for tonemapping sets incorrect crop values, so block
|
||||||
|
// using it (see b/290725189).
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue