diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 44eef20ab2..9805a8d0b1 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -313,6 +313,9 @@ int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device, { VDPAUHWContext *hwctx; + if (flags != 0) + return AVERROR(EINVAL); + if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx))) return AVERROR(ENOMEM);