diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-04-26 14:30:06 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-04-26 14:30:06 +0000 |
commit | 8da8970d014c802944d37a11746f030fc7273b24 (patch) | |
tree | adbae8cd4a5fdffca9612ccbd3c1587b1b7b4ba9 /libavcodec | |
parent | 0d5b2eb4458d4ba4601049b10cf12e74340eb286 (diff) | |
download | ffmpeg-8da8970d014c802944d37a11746f030fc7273b24.tar.gz |
simplify
Originally committed as revision 12995 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 7d584b5e2b..24792ae16f 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -2573,7 +2573,6 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, OUT_INT *outptr, *bp; int fsize; int fr, i, j, n; - int off = avctx->channels; len = buf_size; @@ -2610,13 +2609,13 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, 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; } } } |