[gstreamer-bugs] [Bug 328487] mpegdemux loops infinitely with corrupt MPEG file

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon May 8 03:44:55 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=328487
 GStreamer | gst-plugins-ugly | Ver: HEAD CVS





------- Comment #3 from Tim-Philipp Müller  2006-05-08 10:44 UTC -------
> However, what is unacceptable is that GStreamer never exits.
> Apparently, gst_packetize_read tries unsuccessfully to find
> the sequence 00 00 01 BA, at the end of the file it returns
> GST_FLOW_RESEND, and gst_mpeg_parse_chain returns GST_FLOW_OK.
> This happens for all non-MPEG files fed to the MPEG demuxer,
> not only with MPEG files starting with 00 00 01 B3: even with
> empty files or files made of all zeros

Any suggestions on what the best way to fix this is?

Maybe the packetizer should count the number of bytes dropped since the last
sync when trying to sync, and throw an error if it hasn't been able to find a
sync for N bytes (and on receiving EOS if it hasn't found a single sync yet)?

Maybe it should throw an error if the file doesn't start with a clean sync (or
is that too much of an assumption to make?)?


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list