Revision 8e44312d libavformat/matroskadec.c

View differences:

libavformat/matroskadec.c
1337 1337
            if (track && track->stream)
1338 1338
                av_add_index_entry(track->stream,
1339 1339
                                   pos[j].pos + matroska->segment_start,
1340
                                   index[i].time*matroska->time_scale/AV_TIME_BASE,
1341
                                   0, 0, AVINDEX_KEYFRAME);
1340
                                   index[i].time, 0, 0, AVINDEX_KEYFRAME);
1342 1341
        }
1343 1342
    }
1344 1343

  
......
1627 1626
        }
1628 1627
    if (key_frame)
1629 1628
        av_add_index_entry(matroska->vstream, pos,
1630
                           cluster.timecode*matroska->time_scale/AV_TIME_BASE,
1631
                           0, 0, AVINDEX_KEYFRAME);
1629
                           cluster.timecode, 0, 0, AVINDEX_KEYFRAME);
1632 1630
    ebml_free(matroska_cluster, &cluster);
1633 1631
    if (res < 0)  matroska->done = 1;
1634 1632
    return res;

Also available in: Unified diff