mirror of https://git.ffmpeg.org/ffmpeg.git
vdpau: have av_vdpau_bind_context() fail on unsupported flag
Currently, no flags are supported. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
e09a947c1a
commit
c1724623ce
|
@ -313,6 +313,9 @@ int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device,
|
||||||
{
|
{
|
||||||
VDPAUHWContext *hwctx;
|
VDPAUHWContext *hwctx;
|
||||||
|
|
||||||
|
if (flags != 0)
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx)))
|
if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx)))
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue