# HG changeset patch # User jbr # Date 1264377333 0 # Node ID 621268959a5cac72e1599d1b7c95e3a22716a1b0 # Parent 6d22c964c601b4b6528efadc7228a6c6c616b8a6 Only check frame size if the header is valid. diff -r 6d22c964c601 -r 621268959a5c ac3dec.c --- a/ac3dec.c Sun Jan 24 22:47:50 2010 +0000 +++ b/ac3dec.c Sun Jan 24 23:55:33 2010 +0000 @@ -1237,7 +1237,7 @@ 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; }