This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
ffmpeg_vdpau: Free ctx on error path
Fixes CID1355118 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Michael Niedermayer
10 years ago
parent
50208a0424
commit
ba687ae0bd
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
ffmpeg_vdpau.c
+ 3
- 1
ffmpeg_vdpau.c
View File
@@ -126,8 +126,10 @@ static int vdpau_alloc(AVCodecContext *s)
return AVERROR(ENOMEM);
device_priv = av_mallocz(sizeof(*device_priv));
if (!device_priv)
if (!device_priv) {
av_freep(&ctx);
goto fail;
}
ist->hwaccel_ctx = ctx;
ist->hwaccel_uninit = vdpau_uninit;
Write
Preview
Loading…
Cancel
Save