[FFmpeg-cvslog] vda_h264: fix for VDA compile

Andrew Euell git at videolan.org
Thu Mar 21 19:57:28 CET 2013


ffmpeg | branch: master | Andrew Euell <andyzweb at gmail.com> | Thu Mar 21 14:16:44 2013 -0400| [f8217daa8e771641e4dc567f89584126874dd9db] | committer: Michael Niedermayer

vda_h264: fix for VDA compile

the VDA code needs to be updated to use the CHROMA(h) macros

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8217daa8e771641e4dc567f89584126874dd9db
---

 libavcodec/vda_h264_dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c
index d6c8f37..1bee92b 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;



More information about the ffmpeg-cvslog mailing list