GNOME Bugzilla – Bug 553755
[mpegpsdemux] FP exception when playing tv2-1_25.mpg
Last modified: 2008-10-08 10:21:07 UTC
Hi, when playing tv2-1_25.mpg with mpegpsdemux one gets a FP exception. This might be caused by the stream starting at a timestamp > 0. Old mpegdemux works without problems... Program received signal SIGFPE, Arithmetic exception.
+ Trace 207304
Thread 3067325328 (LWP 5870)
http://samples.mplayerhq.hu/MPEG-VOB/interlaced/tv2-1_25.mpg
Code in question is: adjust = (bss * CLOCK_FREQ) / old_mux_rate; So most probably a division by zero ;)
How old is "old mpegdemux"? afair there used to be a sanity check that the mux_rate was != 0 before doing the division
(In reply to comment #2) > How old is "old mpegdemux"? afair there used to be a sanity check that the > mux_rate was != 0 before doing the division With "old mpegdemux" I meant the one from -ugly. There was a bug with this file too but it was fixed before last release.
2008-10-08 Sebastian Dröge <sebastian.droege@collabora.co.uk> * gst/mpegdemux/gstmpegdemux.c: (gst_flups_demux_send_data), (gst_flups_demux_parse_pack_start): Prevent a division by zero if last mux rate was zero. If we're going to send a NEWSEGMENT event but the segment start and the current buffer timestamp differ by more than a second we will start the NEWSEGMENT at the buffer timestamp. This fixes playback of the tv2-1_25.mpg file, which has 0 as first SCR but the first PTS are around 1 hour and 40 minutes. Fixes bug #553755.