[FFmpeg-cvslog] avidec: try to support oddly muxed MMES stream

Michael Niedermayer git at videolan.org
Mon Dec 10 01:08:04 CET 2012


ffmpeg | branch: release/0.9 | Michael Niedermayer <michaelni at gmx.at> | Thu Nov 22 23:08:01 2012 +0100| [436c011a77be8912e0b81f5178e1154b737633d1] | committer: Carl Eugen Hoyos

avidec: try to support oddly muxed MMES stream

Fixes ticket1804

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit be89693ddc5a8cdeaf3edf48fb584d6adca54de0)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=436c011a77be8912e0b81f5178e1154b737633d1
---

 libavformat/avidec.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 4bf1fd6..de8933c 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1230,6 +1230,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))



More information about the ffmpeg-cvslog mailing list