mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix not ignoring invalid color info.
PiperOrigin-RevId: 526595567
This commit is contained in:
parent
6aacbc6bbb
commit
fcec5a29c1
@ -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…
x
Reference in New Issue
Block a user