mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 19:59:46 +00:00
resample fix by Petros Tsantoulis
Originally committed as revision 1018 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e1687cc07f
commit
9c89585ad4
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user