Fix end of stream toast for AV1

This commit is contained in:
Cameron Gutman
2023-08-03 21:10:06 -05:00
parent 2636d79b86
commit 62bae62386

View File

@@ -1145,15 +1145,26 @@ public class Game extends Activity implements SurfaceHolder.Callback,
// Add the video codec to the post-stream toast // Add the video codec to the post-stream toast
if (message != null) { if (message != null) {
if (videoFormat == MoonBridge.VIDEO_FORMAT_H265_MAIN10) { message += " [";
message += " [HEVC HDR]";
if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_H264) != 0) {
message += "H.264";
} }
else if (videoFormat == MoonBridge.VIDEO_FORMAT_H265) { else if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_H265) != 0) {
message += " [HEVC]"; message += "HEVC";
} }
else if (videoFormat == MoonBridge.VIDEO_FORMAT_H264) { else if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_AV1) != 0) {
message += " [H.264]"; message += "AV1";
} }
else {
message += "UNKNOWN";
}
if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_10BIT) != 0) {
message += " HDR";
}
message += "]";
} }
if (message != null) { if (message != null) {