diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2014-06-21 17:09:29 -0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-22 05:20:22 +0200 |
commit | 0dae193d3ecf5d0dc687f5ad708419bf7600de9a (patch) | |
tree | 14402954d397da038bffef18307ba597c7338ba2 | |
parent | 954a38e9bf65aa765f55360f4a9a7c8ec626d037 (diff) | |
download | ffmpeg-0dae193d3ecf5d0dc687f5ad708419bf7600de9a.tar.gz |
swr: remove another forgotten division in DSP function.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswresample/resample_template.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c index 9279c71150..0fc9770b28 100644 --- a/libswresample/resample_template.c +++ b/libswresample/resample_template.c @@ -168,8 +168,6 @@ int RENAME(swri_resample_linear)(ResampleContext *c, int dst_index; int index= c->index; int frac= c->frac; - int dst_incr_frac= c->dst_incr % c->src_incr; - int dst_incr= c->dst_incr / c->src_incr; int sample_index = index >> c->phase_shift; index &= c->phase_mask; @@ -189,8 +187,8 @@ int RENAME(swri_resample_linear)(ResampleContext *c, val += (v2 - val) * (FELEML) frac / c->src_incr; OUT(dst[dst_index], val); - frac += dst_incr_frac; - index += dst_incr; + frac += c->dst_incr_mod; + index += c->dst_incr_div; if (frac >= c->src_incr) { frac -= c->src_incr; index++; |