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

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 *
*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++;
}
......
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