From 6b9685de3af045f6f92eeafed4160802b532d823 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 13 Jun 2014 20:25:51 -0400 Subject: [PATCH] swr: remove unnecessary assignment. 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 --- libswresample/resample_template.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c index 73a672a4a3..65bde6e7e0 100644 --- a/libswresample/resample_template.c +++ b/libswresample/resample_template.c @@ -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;