mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
4aa8503399
commit
f8217daa8e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue