[FFmpeg-cvslog] adx: remove useless comments

Justin Ruggles git at videolan.org
Sun Nov 27 00:39:14 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Nov 19 17:07:46 2011 -0500| [fbc79a9101b9674327beba9c2a454163ead1e7a5] | committer: Justin Ruggles

adx: remove useless comments

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fbc79a9101b9674327beba9c2a454163ead1e7a5
---

 libavcodec/adxdec.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/libavcodec/adxdec.c b/libavcodec/adxdec.c
index dbc42fe..642d31d 100644
--- a/libavcodec/adxdec.c
+++ b/libavcodec/adxdec.c
@@ -47,14 +47,11 @@ static void adx_decode(int16_t *out,const unsigned char *in,
     int i;
     int s0,s1,s2,d;
 
-//    printf("%x ",scale);
-
     in+=2;
     s1 = prev->s1;
     s2 = prev->s2;
     for(i=0;i<16;i++) {
         d = in[i];
-        // d>>=4; if (d&8) d-=16;
         d = ((signed char)d >> 4);
         s0 = (BASEVOL*d*scale + SCALE1*s1 - SCALE2*s2)>>14;
         s2 = s1;
@@ -62,7 +59,6 @@ static void adx_decode(int16_t *out,const unsigned char *in,
         *out++=s1;
 
         d = in[i];
-        //d&=15; if (d&8) d-=16;
         d = ((signed char)(d<<4) >> 4);
         s0 = (BASEVOL*d*scale + SCALE1*s1 - SCALE2*s2)>>14;
         s2 = s1;
@@ -141,7 +137,7 @@ static int adx_decode_frame(AVCodecContext *avctx,
             samples += 32*2;
         }
     }
-    //
+
     if (avctx->channels==1) {
         while(rest>=18) {
             adx_decode(samples,buf,c->prev);
@@ -157,14 +153,13 @@ static int adx_decode_frame(AVCodecContext *avctx,
             samples+=32*2;
         }
     }
-    //
+
     c->in_temp = rest;
     if (rest) {
         memcpy(c->dec_temp,buf,rest);
         buf+=rest;
     }
     *data_size = (uint8_t*)samples - (uint8_t*)data;
-//    printf("%d:%d ",buf-buf0,*data_size); fflush(stdout);
     return buf-buf0;
 }
 



More information about the ffmpeg-cvslog mailing list