Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/vda_h264_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c
index d6c8f379bd..1bee92baf9 100644
--- a/libavcodec/vda_h264_dec.c
+++ b/libavcodec/vda_h264_dec.c
@@ -149,7 +149,7 @@ static av_cold int check_format(AVCodecContext *avctx)
h = parser->priv_data;
switch (h->sps.bit_depth_luma) {
case 8:
- if (!CHROMA444 && !CHROMA422) {
+ if (!CHROMA444(h) && !CHROMA422(h)) {
// only this will H.264 decoder switch to hwaccel
ret = 0;
break;