mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
HDR: Add colorinfo to exception logs.
Format.toString unfortunately doesn't log colorInfo, and as Format holds a very large set of values, it's unclear that it should. ColorInfo is useful for codec exceptions though, so log this in ExportException.createForCodec. PiperOrigin-RevId: 510475520
This commit is contained in:
parent
1308e22813
commit
f295dd4211
1 changed files with 3 additions and 0 deletions
|
|
@ -231,6 +231,9 @@ public final class ExportException extends Exception {
|
|||
boolean isDecoder,
|
||||
Format format) {
|
||||
String details = "format=" + format;
|
||||
if (isVideo) {
|
||||
details += ", colorInfo=" + format.colorInfo;
|
||||
}
|
||||
return createForCodec(cause, errorCode, isVideo, isDecoder, details);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue