mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
* 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! Originally committed as revision 471 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4c3d2e5f86
commit
8170f3dc8f
@ -48,7 +48,7 @@ static void init_mono_resample(ReSampleChannelContext *s, float ratio)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user