Revision ff85f586 libavformat/oggenc.c

View differences:

libavformat/oggenc.c
40 40
} OGGPage;
41 41

  
42 42
typedef struct {
43
    int64_t duration;
44 43
    unsigned page_counter;
45 44
    uint8_t *header[3];
46 45
    int header_len[3];
......
402 401
        granule = (oggstream->last_kf_pts<<oggstream->kfgshift) | pframe_count;
403 402
    } else
404 403
        granule = pkt->pts + pkt->duration;
405
    oggstream->duration = granule;
406 404

  
407 405
    ret = ogg_buffer_data(s, st, pkt->data, pkt->size, granule);
408 406
    if (ret < 0)

Also available in: Unified diff