mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +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).
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue