]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/resample2.c
Merge commit '90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59'
[ffmpeg] / libavcodec / resample2.c
index 3a3cd13dfeb0bee241af4b6e8fe419debae172af..4cdb0e5095348d6afcb04d86237d4fe775f0f119 100644 (file)
@@ -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;
 }