Permalink
Browse files

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@gmx.at>
  • Loading branch information...
1 parent 4aa8503 commit f8217daa8e771641e4dc567f89584126874dd9db @andyzweb andyzweb committed with michaelni Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit f8217da

Please sign in to comment.