mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge commit 'c1724623ce0433c6a9ee72133b1fd4db75ec7193'
* commit 'c1724623ce0433c6a9ee72133b1fd4db75ec7193': vdpau: have av_vdpau_bind_context() fail on unsupported flag Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
fd937866f7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user