Commit fd937866 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c1724623'

* commit 'c1724623':
  vdpau: have av_vdpau_bind_context() fail on unsupported flag
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a72e75bf c1724623
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment