Revision 169203c1 libavcodec/mpegaudiodec.c

View differences:

libavcodec/mpegaudiodec.c
2591 2591

  
2592 2592
        header = (AV_RB32(buf) & 0x000fffff) | s->syncword; // patch header
2593 2593

  
2594
        if (ff_mpa_check_header(header) < 0) { // Bad header, discard block
2595
            *data_size = 0;
2596
            return buf_size;
2597
        }
2594
        if (ff_mpa_check_header(header) < 0) // Bad header, discard block
2595
            break;
2598 2596

  
2599 2597
        ff_mpegaudio_decode_header(m, header);
2600 2598
        out_size += mp_decode_frame(m, outptr, buf, fsize);

Also available in: Unified diff