# HG changeset patch # User bcoudurier # Date 1209220206 0 # Node ID ef18192d84745fdb7e3ab246a080996786cc102b # Parent dd38dc6306a8fdc654be368e3d991edd53eec961 simplify diff -r dd38dc6306a8 -r ef18192d8474 mpegaudiodec.c --- a/mpegaudiodec.c Sat Apr 26 14:28:18 2008 +0000 +++ b/mpegaudiodec.c Sat Apr 26 14:30:06 2008 +0000 @@ -2573,7 +2573,6 @@ OUT_INT *outptr, *bp; int fsize; int fr, i, j, n; - int off = avctx->channels; len = buf_size; @@ -2610,13 +2609,13 @@ if(m->nb_channels == 1) { for(j = 0; j < n; j++) { *bp = decoded_buf[j]; - bp += off; + bp += avctx->channels; } } else { for(j = 0; j < n; j++) { bp[0] = decoded_buf[j++]; bp[1] = decoded_buf[j]; - bp += off; + bp += avctx->channels; } } }