X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh263dec.c;h=c85ea9d6cd97bf26e7a98592b8059d33fc0998fb;hb=94a4be85a1fcd57fdfd45dc291813d6afef8a87b;hp=c173152f9ad2bde6b627766784538b827f82d72a;hpb=988ddfea5e32226448e353766c8d9b610914e087;p=ffmpeg diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index c173152f9ad..c85ea9d6cd9 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -603,10 +603,12 @@ retry: if (!s->divx_packed && !avctx->hwaccel) ff_thread_finish_setup(avctx); +#if FF_API_CAP_VDPAU if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & AV_CODEC_CAP_HWACCEL_VDPAU)) { ff_vdpau_mpeg4_decode_picture(avctx->priv_data, s->gb.buffer, s->gb.buffer_end - s->gb.buffer); goto frame_end; } +#endif if (avctx->hwaccel) { ret = avctx->hwaccel->start_frame(avctx, s->gb.buffer, @@ -718,10 +720,13 @@ frame_end: const enum AVPixelFormat ff_h263_hwaccel_pixfmt_list_420[] = { #if CONFIG_H263_VAAPI_HWACCEL || CONFIG_MPEG4_VAAPI_HWACCEL - AV_PIX_FMT_VAAPI_VLD, + AV_PIX_FMT_VAAPI, #endif #if CONFIG_H263_VDPAU_HWACCEL || CONFIG_MPEG4_VDPAU_HWACCEL AV_PIX_FMT_VDPAU, +#endif +#if CONFIG_H263_VIDEOTOOLBOX_HWACCEL || CONFIG_MPEG4_VIDEOTOOLBOX_HWACCEL + AV_PIX_FMT_VIDEOTOOLBOX, #endif AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE