diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 1827e1a4ad..c3a5ca00fd 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -686,6 +686,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);