Revision 5be25fc1 libavcodec/mpegaudiodec.c

View differences:

libavcodec/mpegaudiodec.c
2581 2581
    for (fr = 0; fr < s->frames; fr++) {
2582 2582
        start = start2;
2583 2583
        fsize = (start[0] << 4) | (start[1] >> 4);
2584
        fsize = FFMIN3(fsize, len, MPA_MAX_CODED_FRAME_SIZE);
2584 2585
        start2 += fsize;
2585
        if (fsize > len)
2586
            fsize = len;
2587 2586
        len -= fsize;
2588
        if (fsize > MPA_MAX_CODED_FRAME_SIZE)
2589
            fsize = MPA_MAX_CODED_FRAME_SIZE;
2590 2587
        m = s->mp3decctx[fr];
2591 2588
        assert (m != NULL);
2592 2589

  

Also available in: Unified diff