[FFmpeg-cvslog] r12995 - trunk/libavcodec/mpegaudiodec.c
bcoudurier
subversion
Sat Apr 26 16:30:07 CEST 2008
Author: bcoudurier
Date: Sat Apr 26 16:30:06 2008
New Revision: 12995
Log:
simplify
Modified:
trunk/libavcodec/mpegaudiodec.c
Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c (original)
+++ trunk/libavcodec/mpegaudiodec.c Sat Apr 26 16:30:06 2008
@@ -2573,7 +2573,6 @@ static int decode_frame_mp3on4(AVCodecCo
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(AVCodecCo
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;
}
}
}
More information about the ffmpeg-cvslog
mailing list