[FFmpeg-cvslog] vc1dec: prevent memory leak in error path
Janne Grunau
git at videolan.org
Wed Oct 10 13:23:59 CEST 2012
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Tue Oct 9 16:09:41 2012 +0200| [6f8ef5320f4d435803482ed322f3de45e6ea125c] | committer: Janne Grunau
vc1dec: prevent memory leak in error path
Fixes CID732271.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f8ef5320f4d435803482ed322f3de45e6ea125c
---
libavcodec/vc1dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 13303dc..d410875 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5463,7 +5463,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
if (!s->context_initialized) {
if (ff_msmpeg4_decode_init(avctx) < 0 || ff_vc1_decode_init_alloc_tables(v) < 0)
- return -1;
+ goto err;
s->low_delay = !avctx->has_b_frames || v->res_sprite;
More information about the ffmpeg-cvslog
mailing list