diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-05-09 01:23:49 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-05-09 01:23:49 +0000 |
commit | 8170f3dc8fb8a63e00c71363ae0c5527baa04828 (patch) | |
tree | 67b8d50f4ef0ff264347b7a4456710f0611a0aab | |
parent | 4c3d2e5f86e39889698f0a2a055d22b83984dd66 (diff) | |
download | ffmpeg-8170f3dc8fb8a63e00c71363ae0c5527baa04828.tar.gz |
* 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
-rw-r--r-- | libavcodec/resample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c index 94e3a560e1..78b4ad8126 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -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; |