Browse Source

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
tags/v0.5
Erik Hovland Benoit Fouet 17 years ago
parent
commit
8d8d2b7391
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vc1.c

+ 1
- 0
libavcodec/vc1.c View File

@@ -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;
}



Loading…
Cancel
Save