1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

View File

@ -149,7 +149,7 @@ static av_cold int check_format(AVCodecContext *avctx)
h = parser->priv_data; h = parser->priv_data;
switch (h->sps.bit_depth_luma) { switch (h->sps.bit_depth_luma) {
case 8: case 8:
if (!CHROMA444 && !CHROMA422) { if (!CHROMA444(h) && !CHROMA422(h)) {
// only this will H.264 decoder switch to hwaccel // only this will H.264 decoder switch to hwaccel
ret = 0; ret = 0;
break; break;