Module: libav Branch: master Commit: c1724623ce0433c6a9ee72133b1fd4db75ec7193
Author: Rémi Denis-Courmont <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Tue Oct 14 12:59:53 2014 +0300 vdpau: have av_vdpau_bind_context() fail on unsupported flag Currently, no flags are supported. Signed-off-by: Anton Khirnov <[email protected]> --- 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); _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
