Mercurial > libavcodec.hg
comparison vc1.c @ 7300:7e806e21c193 libavcodec
Fix a mem leak in vc1_decode_frame().
Patch by Erik Hovland erik hovland org
author | benoit |
---|---|
date | Fri, 18 Jul 2008 07:15:50 +0000 |
parents | 7a73d76aaaa0 |
children | 5719e2c85aa3 |
comparison
equal
deleted
inserted
replaced
7299:1b5bc92244de | 7300:7e806e21c193 |
---|---|
4003 const uint8_t *divider; | 4003 const uint8_t *divider; |
4004 | 4004 |
4005 divider = find_next_marker(buf, buf + buf_size); | 4005 divider = find_next_marker(buf, buf + buf_size); |
4006 if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){ | 4006 if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){ |
4007 av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n"); | 4007 av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n"); |
4008 av_free(buf2); | |
4008 return -1; | 4009 return -1; |
4009 } | 4010 } |
4010 | 4011 |
4011 buf_size2 = vc1_unescape_buffer(buf, divider - buf, buf2); | 4012 buf_size2 = vc1_unescape_buffer(buf, divider - buf, buf2); |
4012 // TODO | 4013 // TODO |