changeset 739:f40723ee806d libavcodec

resample fix by Petros Tsantoulis
author bellard
date Wed, 09 Oct 2002 14:16:31 +0000
parents 044307862b4b
children 585c163c225a
files resample.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample.c	Wed Oct 09 12:35:22 2002 +0000
+++ b/resample.c	Wed Oct 09 14:16:31 2002 +0000
@@ -75,9 +75,9 @@
         *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++;
         }