Commit 9c89585a authored by Fabrice Bellard's avatar Fabrice Bellard

resample fix by Petros Tsantoulis

Originally committed as revision 1018 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e1687cc0
...@@ -75,9 +75,9 @@ static int fractional_resample(ReSampleChannelContext *s, short *output, short * ...@@ -75,9 +75,9 @@ static int fractional_resample(ReSampleChannelContext *s, short *output, short *
*q++ = (l0 * (FRAC - frac) + l1 * frac) >> FRAC_BITS; *q++ = (l0 * (FRAC - frac) + l1 * frac) >> FRAC_BITS;
frac = frac + s->incr; frac = frac + s->incr;
while (frac >= FRAC) { while (frac >= FRAC) {
frac -= FRAC;
if (p >= pend) if (p >= pend)
goto the_end; goto the_end;
frac -= FRAC;
l0 = l1; l0 = l1;
l1 = *p++; l1 = *p++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment