swr: remove unnecessary assignment.
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 14 Jun 2014 00:25:51 +0000 (20:25 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Jun 2014 02:30:53 +0000 (04:30 +0200)
I don't see dst_incr/dst_incr_frac ever being changed from their
initial value (which is the inverse of this operation), so it seems
to me that this is a no-op.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample_template.c

index 73a672a..65bde6e 100644 (file)
@@ -248,7 +248,6 @@ int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int
     if(update_ctx){
         c->frac= frac;
         c->index= index;
-        c->dst_incr= dst_incr_frac + c->src_incr*dst_incr;
     }
 
     return dst_index;