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;