diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-23 02:08:01 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-23 02:20:35 +0400 |
commit | be89693ddc5a8cdeaf3edf48fb584d6adca54de0 (patch) | |
tree | 3dcebf27b289d2769e0749c07e1d83ab0145e186 | |
parent | dd6abc921af19100c4ace5ff72dee5f92c0e6ac0 (diff) |
avidec: try to support oddly muxed MMES stream
Fixes ticket1804
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/avidec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 0314b4d188..8f478b152d 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1271,6 +1271,11 @@ static int avi_read_idx1(AVFormatContext *s, int size) avi->stream_index = -1; avio_seek(pb, idx1_pos, SEEK_SET); + if (s->nb_streams == 1 && s->streams[0]->codec->codec_tag == AV_RL32("MMES")){ + first_packet_pos = 0; + data_offset = avi->movi_list; + } + /* Read the entries and sort them in each stream component. */ for(i = 0; i < nb_index_entries; i++) { if(url_feof(pb)) |