Revision 3e93c8ed

View differences:

libavformat/matroskadec.c
143 143

  
144 144
    AVStream *stream;
145 145
    int64_t end_timecode;
146
    int ms_compat;
146 147
} MatroskaTrack;
147 148

  
148 149
typedef struct {
......
1244 1245
        if (!strcmp(track->codec_id, "V_MS/VFW/FOURCC")
1245 1246
            && track->codec_priv.size >= 40
1246 1247
            && track->codec_priv.data != NULL) {
1248
            track->ms_compat = 1;
1247 1249
            track->video.fourcc = AV_RL32(track->codec_priv.data + 16);
1248 1250
            codec_id = ff_codec_get_id(ff_codec_bmp_tags, track->video.fourcc);
1249 1251
            extradata_offset = 40;
......
1698 1700
                    pkt->flags = is_keyframe;
1699 1701
                pkt->stream_index = st->index;
1700 1702

  
1703
                if (track->ms_compat)
1704
                    pkt->dts = timecode;
1705
                else
1701 1706
                pkt->pts = timecode;
1702 1707
                pkt->pos = pos;
1703 1708
                if (st->codec->codec_id == CODEC_ID_TEXT)

Also available in: Unified diff