[FFmpeg-cvslog] resample: remove disabled debug code

Michael Niedermayer git at videolan.org
Thu Dec 6 03:17:36 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec  5 22:55:18 2012 +0100| [b6a7f66f9329c212d7b221e4b278d6d5c0d2ef3c] | committer: Michael Niedermayer

resample: remove disabled debug code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/resample2.c            |    7 -------
 libswresample/resample_template.c |    7 -------
 2 files changed, 14 deletions(-)

diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c
index 3a3cd13..4cdb0e5 100644
--- a/libavcodec/resample2.c
+++ b/libavcodec/resample2.c
@@ -313,13 +313,6 @@ int av_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int
         c->dst_incr= dst_incr_frac + c->src_incr*dst_incr;
         c->compensation_distance= compensation_distance;
     }
-#if 0
-    if(update_ctx && !c->compensation_distance){
-#undef rand
-        av_resample_compensate(c, rand() % (8000*2) - 8000, 8000*2);
-av_log(NULL, AV_LOG_DEBUG, "%d %d %d\n", c->dst_incr, c->ideal_dst_incr, c->compensation_distance);
-    }
-#endif
 
     return dst_index;
 }
diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c
index 855296f..b62901d 100644
--- a/libswresample/resample_template.c
+++ b/libswresample/resample_template.c
@@ -195,13 +195,6 @@ int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int
         c->dst_incr= dst_incr_frac + c->src_incr*dst_incr;
         c->compensation_distance= compensation_distance;
     }
-#if 0
-    if(update_ctx && !c->compensation_distance){
-#undef rand
-        av_resample_compensate(c, rand() % (8000*2) - 8000, 8000*2);
-av_log(NULL, AV_LOG_DEBUG, "%d %d %d\n", c->dst_incr, c->ideal_dst_incr, c->compensation_distance);
-    }
-#endif
 
     return dst_index;
 }



More information about the ffmpeg-cvslog mailing list