Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-11 21:42:25 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-11 22:23:33 +0400
commit6d6bd16fce080bd7af1a3ef02c3354c360948e15 (patch)
tree6f42972699212f1dd1ee527f9ecd679d35238510 /libavresample
parentfb7d64df7e3b4894460c23ef3005030a5f86b5d1 (diff)
parenteed752d61da332fb13e9893a175a90fed7b1d7d3 (diff)
Merge commit 'eed752d61da332fb13e9893a175a90fed7b1d7d3'
* commit 'eed752d61da332fb13e9893a175a90fed7b1d7d3': resample: drop useless abs() Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavresample')
-rw-r--r--libavresample/resample_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavresample/resample_template.c b/libavresample/resample_template.c
index 0b4cf251dd..314eaa03f1 100644
--- a/libavresample/resample_template.c
+++ b/libavresample/resample_template.c
@@ -80,8 +80,8 @@ static void SET_TYPE(resample_one)(ResampleContext *c,
} else if (c->linear) {
FELEM2 v2 = 0;
for (i = 0; i < c->filter_length; i++) {
- val += src[abs(sample_index + i)] * (FELEM2)filter[i];
- v2 += src[abs(sample_index + i)] * (FELEM2)filter[i + c->filter_length];
+ val += src[sample_index + i] * (FELEM2)filter[i];
+ v2 += src[sample_index + i] * (FELEM2)filter[i + c->filter_length];
}
val += (v2 - val) * (FELEML)frac / c->src_incr;
} else {