From c1724623ce0433c6a9ee72133b1fd4db75ec7193 Mon Sep 17 00:00:00 2001 From: RĂ©mi Denis-Courmont Date: Tue, 14 Oct 2014 12:59:53 +0300 Subject: vdpau: have av_vdpau_bind_context() fail on unsupported flag Currently, no flags are supported. Signed-off-by: Anton Khirnov --- libavcodec/vdpau.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3