changeset 373:3007abcbc510 libavcodec

* Fix a problem with the first sample when down sampling. * Note that this code needs to be fixed -- the rate conversion from 48000->44100 sounds horrible!
author philipjsg
date Thu, 09 May 2002 01:23:49 +0000
parents 19b6a1fa6f6d
children 02147e22f8c8
files resample.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample.c	Thu May 09 01:22:51 2002 +0000
+++ b/resample.c	Thu May 09 01:23:49 2002 +0000
@@ -48,7 +48,7 @@
     if (s->iratio == 0)
         s->iratio = 1;
     s->incr = (int)((ratio / s->iratio) * FRAC);
-    s->frac = 0;
+    s->frac = FRAC;
     s->last_sample = 0;
     s->icount = s->iratio;
     s->isum = 0;