ffmpeg | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Tue Oct 14 12:59:53 2014 +0300| [c1724623ce0433c6a9ee72133b1fd4db75ec7193] | committer: Anton Khirnov
vdpau: have av_vdpau_bind_context() fail on unsupported flag Currently, no flags are supported. Signed-off-by: Anton Khirnov <an...@khirnov.net> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1724623ce0433c6a9ee72133b1fd4db75ec7193 --- libavcodec/vdpau.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 44eef20..9805a8d 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog