Mercurial > libavformat.hg
changeset 1347:ff613c1c0795 libavformat
return 0 as stream index if only one stream, this is completely non standard, fix Cars_TL4IO6_239_DEXX_MPEG_TDC_072006.wav.mxf
author | bcoudurier |
---|---|
date | Mon, 02 Oct 2006 13:22:51 +0000 |
parents | 3637b5c4e882 |
children | c23cce23abb2 |
files | mxf.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mxf.c Sun Oct 01 20:41:02 2006 +0000 +++ b/mxf.c Mon Oct 02 13:22:51 2006 +0000 @@ -214,7 +214,8 @@ if (!memcmp(klv->key + sizeof(mxf_essence_element_key), track->track_number, sizeof(track->track_number))) return i; } - return -1; + /* return 0 if only one stream, for OP Atom files with 0 as track number */ + return s->nb_streams == 1 ? 0 : -1; } static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)