[FFmpeg-cvslog] r21439 - trunk/libavcodec/ac3dec.c
jbr
subversion
Mon Jan 25 00:55:33 CET 2010
Author: jbr
Date: Mon Jan 25 00:55:33 2010
New Revision: 21439
Log:
Only check frame size if the header is valid.
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c Sun Jan 24 23:47:50 2010 (r21438)
+++ trunk/libavcodec/ac3dec.c Mon Jan 25 00:55:33 2010 (r21439)
@@ -1237,7 +1237,7 @@ static int ac3_decode_frame(AVCodecConte
err = parse_frame_header(s);
/* check that reported frame size fits in input buffer */
- if(s->frame_size > buf_size) {
+ if(!err && s->frame_size > buf_size) {
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");
err = AAC_AC3_PARSE_ERROR_FRAME_SIZE;
}
More information about the ffmpeg-cvslog
mailing list