summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.c
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2014-10-14 12:59:53 +0300
committerAnton Khirnov <anton@khirnov.net>2014-10-15 06:21:47 +0000
commitc1724623ce0433c6a9ee72133b1fd4db75ec7193 (patch)
treeb6a8221f90bf8bc9bde5af63fb30c402ea68267e /libavcodec/vdpau.c
parente09a947c1a856d9d34199a13ee378fe46be53d3a (diff)
vdpau: have av_vdpau_bind_context() fail on unsupported flag
Currently, no flags are supported. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r--libavcodec/vdpau.c3
1 files changed, 3 insertions, 0 deletions
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);