diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2014-10-14 12:59:53 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-15 06:21:47 +0000 |
commit | c1724623ce0433c6a9ee72133b1fd4db75ec7193 (patch) | |
tree | b6a8221f90bf8bc9bde5af63fb30c402ea68267e /libavcodec | |
parent | e09a947c1a856d9d34199a13ee378fe46be53d3a (diff) | |
download | ffmpeg-c1724623ce0433c6a9ee72133b1fd4db75ec7193.tar.gz |
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')
-rw-r--r-- | libavcodec/vdpau.c | 3 |
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); |