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
This commit is contained in:
Thiago Santos 2015-02-24 10:50:52 -03:00
parent 3f6a868f7e
commit f40c1f8b09

View file

@ -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");