From f40c1f8b09f11dfe597b134af2162c1049563733 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 24 Feb 2015 10:50:52 -0300 Subject: [PATCH] qtdemux: avoid looping reading the 'moof' atom forever It gets stuck if it only finds a moof and no mfra/mfro or moov atoms. Skip the moof to continue the parsing to have it either play or error out. https://bugzilla.gnome.org/show_bug.cgi?id=745089 --- gst/isomp4/qtdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 430d5f6..04cc4e4 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -3313,6 +3313,8 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux) } if (qtdemux_pull_mfro_mfra (qtdemux)) { /* FIXME */ + } else { + qtdemux->offset += length; /* skip moof and keep going */ } if (qtdemux->got_moov) { GST_INFO_OBJECT (qtdemux, "moof header, got moov, done with headers"); -- 2.7.4