aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-10-09 14:16:31 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-10-09 14:16:31 +0000
commit9c89585ad4ad3917ff3abf196a84a687a34eca14 (patch)
tree3f2be7403718ef45c347aeeb74073bd3f6fe70bf /libavcodec
parente1687cc07ff4e95d2689408b15b606b7916ba076 (diff)
downloadffmpeg-9c89585ad4ad3917ff3abf196a84a687a34eca14.tar.gz
resample fix by Petros Tsantoulis
Originally committed as revision 1018 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c
index ad857e220c..b80bea3997 100644
--- a/libavcodec/resample.c
+++ b/libavcodec/resample.c
@@ -75,9 +75,9 @@ static int fractional_resample(ReSampleChannelContext *s, short *output, short *
*q++ = (l0 * (FRAC - frac) + l1 * frac) >> FRAC_BITS;
frac = frac + s->incr;
while (frac >= FRAC) {
+ frac -= FRAC;
if (p >= pend)
goto the_end;
- frac -= FRAC;
l0 = l1;
l1 = *p++;
}