aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-22 23:08:01 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-12-10 01:06:57 +0100
commit73487f7dee13d509dea65d66b1a244736227ad54 (patch)
treeba3640064f4507bf2206875c7b3570d39f3f8bad
parentc389ae543a5cf9176ce935ef685f128227525c5e (diff)
downloadffmpeg-73487f7dee13d509dea65d66b1a244736227ad54.tar.gz
avidec: try to support oddly muxed MMES stream
Fixes ticket1804 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit be89693ddc5a8cdeaf3edf48fb584d6adca54de0)
-rw-r--r--libavformat/avidec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index c4d41e5449..1e71522915 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1262,6 +1262,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))