OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1687cc
)
resample fix by Petros Tsantoulis
author
Fabrice Bellard
<fabrice@bellard.org>
Wed, 9 Oct 2002 14:16:31 +0000
(14:16 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Wed, 9 Oct 2002 14:16:31 +0000
(14:16 +0000)
Originally committed as revision 1018 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/resample.c
patch
|
blob
|
history
diff --git
a/libavcodec/resample.c
b/libavcodec/resample.c
index
ad857e2
..
b80bea3
100644
(file)
--- 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++;
}