[FFmpeg-cvslog] vdpau: have av_vdpau_bind_context() fail on unsupported flag
Rémi Denis-Courmont
git at videolan.org
Wed Oct 15 12:29:30 CEST 2014
ffmpeg | branch: master | Rémi Denis-Courmont <remi at 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 <anton at 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);
More information about the ffmpeg-cvslog
mailing list