diff mpegaudiodec.c @ 6701:ef18192d8474 libavcodec

simplify
author bcoudurier
date Sat, 26 Apr 2008 14:30:06 +0000
parents dd38dc6306a8
children a9a28c8b40fb
line wrap: on
line diff
--- 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;
                 }
             }
         }