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>
This commit is contained in:
Andrew Euell 2013-03-21 14:16:44 -04:00 committed by Michael Niedermayer
parent 4aa8503399
commit f8217daa8e
1 changed files with 1 additions and 1 deletions

View File

@ -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;