Revision 7c87a2f0

View differences:

libavformat/mxf.c
215 215
    ByteIOContext *pb = &mxf->fc->pb;
216 216
    uint8_t sequence_uid[16];
217 217
    uint8_t data_definition[16];
218
    uint64_t duration = 0;
218
    uint64_t duration = AV_NOPTS_VALUE;
219 219
    int bytes_read = 0;
220 220
    int i;
221 221

  
......
241 241

  
242 242
    for (i = 0; i < mxf->tracks_count; i++)
243 243
        if (!memcmp(sequence_uid, mxf->tracks[i].sequence_uid, 16)) {
244
            mxf->tracks[i].stream->start_time = 0;
244 245
            mxf->tracks[i].stream->duration = duration;
245 246
            if (data_definition[11] == 0x02 && data_definition[12] == 0x01)
246 247
                mxf->tracks[i].stream->codec->codec_type = CODEC_TYPE_VIDEO;

Also available in: Unified diff