Commit 4825fa89 authored by benoit's avatar benoit

Fix a mem leak in vc1_decode_frame().

Patch by Erik Hovland erik hovland org


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14277 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c678ad25
...@@ -4005,6 +4005,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, ...@@ -4005,6 +4005,7 @@ static int vc1_decode_frame(AVCodecContext *avctx,
divider = find_next_marker(buf, buf + buf_size); divider = find_next_marker(buf, buf + buf_size);
if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){ if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){
av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n"); av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n");
av_free(buf2);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment