Revision 03da8726 libavformat/mxf.c

View differences:

libavformat/mxf.c
214 214
        if (!memcmp(klv->key + sizeof(mxf_essence_element_key), track->track_number, sizeof(track->track_number)))
215 215
            return i;
216 216
    }
217
    return -1;
217
    /* return 0 if only one stream, for OP Atom files with 0 as track number */
218
    return s->nb_streams == 1 ? 0 : -1;
218 219
}
219 220

  
220 221
static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)

Also available in: Unified diff