mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Fix not ignoring invalid color info.
PiperOrigin-RevId: 526595567
This commit is contained in:
parent
6aacbc6bbb
commit
fcec5a29c1
1 changed files with 2 additions and 2 deletions
|
|
@ -391,8 +391,8 @@ import org.checkerframework.dataflow.qual.Pure;
|
|||
// populate default color info, which depends on the resolution.
|
||||
return ColorInfo.SDR_BT709_LIMITED;
|
||||
}
|
||||
if (inputFormat.colorInfo == null) {
|
||||
Log.d(TAG, "colorInfo is null. Defaulting to SDR_BT709_LIMITED.");
|
||||
if (inputFormat.colorInfo == null || !inputFormat.colorInfo.isValid()) {
|
||||
Log.d(TAG, "colorInfo is null or invalid. Defaulting to SDR_BT709_LIMITED.");
|
||||
return ColorInfo.SDR_BT709_LIMITED;
|
||||
}
|
||||
return inputFormat.colorInfo;
|
||||
|
|
|
|||
Loading…
Reference in a new issue