Commit 38d5fd8f authored by philipjsg's avatar philipjsg

* 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!


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@471 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1e85b3dc
...@@ -48,7 +48,7 @@ static void init_mono_resample(ReSampleChannelContext *s, float ratio) ...@@ -48,7 +48,7 @@ static void init_mono_resample(ReSampleChannelContext *s, float ratio)
if (s->iratio == 0) if (s->iratio == 0)
s->iratio = 1; s->iratio = 1;
s->incr = (int)((ratio / s->iratio) * FRAC); s->incr = (int)((ratio / s->iratio) * FRAC);
s->frac = 0; s->frac = FRAC;
s->last_sample = 0; s->last_sample = 0;
s->icount = s->iratio; s->icount = s->iratio;
s->isum = 0; s->isum = 0;
......
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