Commit 6d700b19 authored by bcoudurier's avatar bcoudurier

return 0 as stream index if only one stream, this is completely non standard,...

return 0 as stream index if only one stream, this is completely non standard, fix Cars_TL4IO6_239_DEXX_MPEG_TDC_072006.wav.mxf

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6528 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5dc8a4b6
......@@ -214,7 +214,8 @@ static int mxf_get_stream_index(AVFormatContext *s, KLVPacket *klv)
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment