X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264_picture.c;h=731d780e676afa73d85cd78c6dffa8e290da155c;hb=a0079aae00a70ac7845941d4556419322a510bba;hp=04bbf028cc462f8a2e10856fffb6c29355d23c1c;hpb=e1def4ffec209c0949807f8c505539dc6d709c31;p=ffmpeg diff --git a/libavcodec/h264_picture.c b/libavcodec/h264_picture.c index 04bbf028cc4..731d780e676 100644 --- a/libavcodec/h264_picture.c +++ b/libavcodec/h264_picture.c @@ -157,9 +157,11 @@ int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup) int err = 0; h->mb_y = 0; +#if FF_API_CAP_VDPAU if (CONFIG_H264_VDPAU_DECODER && h->avctx->codec->capabilities & AV_CODEC_CAP_HWACCEL_VDPAU) ff_vdpau_h264_set_reference_frames(h); +#endif if (in_setup || !(avctx->active_thread_type & FF_THREAD_FRAME)) { if (!h->droppable) { @@ -178,9 +180,11 @@ int ff_h264_field_end(H264Context *h, H264SliceContext *sl, int in_setup) "hardware accelerator failed to decode picture\n"); } +#if FF_API_CAP_VDPAU if (CONFIG_H264_VDPAU_DECODER && h->avctx->codec->capabilities & AV_CODEC_CAP_HWACCEL_VDPAU) ff_vdpau_h264_picture_complete(h); +#endif #if CONFIG_ERROR_RESILIENCE av_assert0(sl == h->slice_ctx);