Commit 2169b941 by andrewlewis Committed by Oliver Woodman

Fix HEVC level error logging

PiperOrigin-RevId: 232651944
parent ebfbb4f9
...@@ -445,9 +445,10 @@ public final class MediaCodecUtil { ...@@ -445,9 +445,10 @@ public final class MediaCodecUtil {
Log.w(TAG, "Unknown HEVC profile string: " + profileString); Log.w(TAG, "Unknown HEVC profile string: " + profileString);
return null; return null;
} }
Integer level = HEVC_CODEC_STRING_TO_PROFILE_LEVEL.get(parts[3]); String levelString = parts[3];
Integer level = HEVC_CODEC_STRING_TO_PROFILE_LEVEL.get(levelString);
if (level == null) { if (level == null) {
Log.w(TAG, "Unknown HEVC level string: " + matcher.group(1)); Log.w(TAG, "Unknown HEVC level string: " + levelString);
return null; return null;
} }
return new Pair<>(profile, level); return new Pair<>(profile, level);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment