]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit 'c1724623ce0433c6a9ee72133b1fd4db75ec7193'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 15 Oct 2014 10:17:15 +0000 (12:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 15 Oct 2014 10:17:59 +0000 (12:17 +0200)
* commit 'c1724623ce0433c6a9ee72133b1fd4db75ec7193':
  vdpau: have av_vdpau_bind_context() fail on unsupported flag

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vdpau.c

index 1827e1a4addcebb81de6e8bf17bc7e559dd2470a..c3a5ca00fdd8b125786b55f21c6f1c28e5846971 100644 (file)
@@ -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);