Revision 8170f3dc

View differences:

libavcodec/resample.c
48 48
    if (s->iratio == 0)
49 49
        s->iratio = 1;
50 50
    s->incr = (int)((ratio / s->iratio) * FRAC);
51
    s->frac = 0;
51
    s->frac = FRAC;
52 52
    s->last_sample = 0;
53 53
    s->icount = s->iratio;
54 54
    s->isum = 0;

Also available in: Unified diff