From f8217daa8e771641e4dc567f89584126874dd9db Mon Sep 17 00:00:00 2001 From: Andrew Euell Date: Thu, 21 Mar 2013 14:16:44 -0400 Subject: vda_h264: fix for VDA compile the VDA code needs to be updated to use the CHROMA(h) macros Signed-off-by: Michael Niedermayer --- libavcodec/vda_h264_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/vda_h264_dec.c') 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; -- cgit v1.2.3