Revision b79c3df0 libavformat/applehttp.c

View differences:

libavformat/applehttp.c
306 306
    /* If this isn't a live stream, calculate the total duration of the
307 307
     * stream. */
308 308
    if (c->finished) {
309
        int duration = 0;
309
        int64_t duration = 0;
310 310
        for (i = 0; i < c->variants[0]->n_segments; i++)
311 311
            duration += c->variants[0]->segments[i]->duration;
312 312
        s->duration = duration * AV_TIME_BASE;

Also available in: Unified diff