diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 9f982194b0..8d97103ca5 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2313,7 +2313,7 @@ static int decode_chunks(AVCodecContext *avctx, s2->error_count += s2->thread_context[i]->error_count; } - if (avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) + if (CONFIG_MPEG_VDPAU_DECODER && avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) ff_vdpau_mpeg_picture_complete(s2, buf, buf_size, s->slice_count); if (slice_end(avctx, picture)) {