Revision 8da8970d

View differences:

libavcodec/mpegaudiodec.c
2573 2573
    OUT_INT *outptr, *bp;
2574 2574
    int fsize;
2575 2575
    int fr, i, j, n;
2576
    int off = avctx->channels;
2577 2576

  
2578 2577
    len = buf_size;
2579 2578

  
......
2610 2609
            if(m->nb_channels == 1) {
2611 2610
                for(j = 0; j < n; j++) {
2612 2611
                    *bp = decoded_buf[j];
2613
                    bp += off;
2612
                    bp += avctx->channels;
2614 2613
                }
2615 2614
            } else {
2616 2615
                for(j = 0; j < n; j++) {
2617 2616
                    bp[0] = decoded_buf[j++];
2618 2617
                    bp[1] = decoded_buf[j];
2619
                    bp += off;
2618
                    bp += avctx->channels;
2620 2619
                }
2621 2620
            }
2622 2621
        }

Also available in: Unified diff