mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibMedia: Format switch statements consistently in FFmpegVideoDecoder
This commit is contained in:
parent
924ba6c1f4
commit
f9305e7e67
|
|
@ -168,8 +168,9 @@ DecoderErrorOr<NonnullOwnPtr<VideoFrame>> FFmpegVideoDecoder::get_decoded_frame(
|
||||||
case AV_PIX_FMT_YUV422P12:
|
case AV_PIX_FMT_YUV422P12:
|
||||||
case AV_PIX_FMT_YUV444P12:
|
case AV_PIX_FMT_YUV444P12:
|
||||||
return 12;
|
return 12;
|
||||||
|
default:
|
||||||
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
VERIFY_NOT_REACHED();
|
|
||||||
}();
|
}();
|
||||||
size_t component_size = (bit_depth + 7) / 8;
|
size_t component_size = (bit_depth + 7) / 8;
|
||||||
|
|
||||||
|
|
@ -190,7 +191,6 @@ DecoderErrorOr<NonnullOwnPtr<VideoFrame>> FFmpegVideoDecoder::get_decoded_frame(
|
||||||
case AV_PIX_FMT_YUV444P12:
|
case AV_PIX_FMT_YUV444P12:
|
||||||
case AV_PIX_FMT_YUVJ444P:
|
case AV_PIX_FMT_YUVJ444P:
|
||||||
return { false, false };
|
return { false, false };
|
||||||
|
|
||||||
default:
|
default:
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user