diff options
author | Erik Hovland <erik@hovland.org> | 2008-07-18 07:15:50 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-07-18 07:15:50 +0000 |
commit | 8d8d2b73914a47cf9ce5ca4ff96de6fd067b84a6 (patch) | |
tree | b2f4e77e73a647b2f86f1919f01cf2c14d281870 /libavcodec/vc1.c | |
parent | be390a4e2e71e21fd6185185a7f5c882ff16ed05 (diff) | |
download | ffmpeg-streaming-8d8d2b73914a47cf9ce5ca4ff96de6fd067b84a6.zip ffmpeg-streaming-8d8d2b73914a47cf9ce5ca4ff96de6fd067b84a6.tar.gz |
Fix a mem leak in vc1_decode_frame().
Patch by Erik Hovland erik hovland org
Originally committed as revision 14277 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index f1a7232..6edf746 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -4005,6 +4005,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, divider = find_next_marker(buf, buf + buf_size); if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){ av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n"); + av_free(buf2); return -1; } |