Revision 916bf03a libavformat/matroska.c

View differences:

libavformat/matroska.c
2552 2552

  
2553 2553
    if (res == 0) {
2554 2554
        int real_v = matroska->tracks[track]->flags & MATROSKA_TRACK_REAL_V;
2555
        uint64_t timecode = AV_NOPTS_VALUE;
2556

  
2557
        if (cluster_time != (uint64_t)-1 && cluster_time + block_time >= 0)
2558
            timecode = cluster_time + block_time;
2559

  
2555 2560
        for (n = 0; n < laces; n++) {
2556
            uint64_t timecode = AV_NOPTS_VALUE;
2557 2561
            int slice, slices = 1;
2558 2562

  
2559 2563
            if (real_v) {
2560 2564
                slices = *data++ + 1;
2561 2565
                lace_size[n]--;
2562 2566
            }
2563
            if (cluster_time != (uint64_t)-1 && n == 0) {
2564
                if (cluster_time + block_time >= 0)
2565
                    timecode = cluster_time + block_time;
2566
            }
2567 2567
            /* FIXME: duration */
2568 2568

  
2569 2569
            for (slice=0; slice<slices; slice++) {
......
2595 2595
                    matroska_queue_packet_reordered(matroska, pkt, is_bframe);
2596 2596
                else
2597 2597
                    matroska_queue_packet(matroska, pkt);
2598

  
2599
                timecode = AV_NOPTS_VALUE;
2598 2600
            }
2599 2601
            data += lace_size[n];
2600 2602
        }

Also available in: Unified diff