Revision 008f872f

View differences:

libavcodec/ac3dec.c
1237 1237
    err = parse_frame_header(s);
1238 1238

  
1239 1239
    /* check that reported frame size fits in input buffer */
1240
    if(s->frame_size > buf_size) {
1240
    if(!err && s->frame_size > buf_size) {
1241 1241
        av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");
1242 1242
        err = AAC_AC3_PARSE_ERROR_FRAME_SIZE;
1243 1243
    }

Also available in: Unified diff