GNOME Bugzilla – Bug 315385
SIGFPE in gst_ffmpegdec_chain/gst_ffmpeg_time_gst_to_ff
Last modified: 2005-09-17 13:38:37 UTC
Program received signal SIGFPE, Arithmetic exception.
+ Trace 62745
Thread NaN (LWP 31964)
Crash is inside inline gst_ffmpeg_time_gst_to_ff. Problem is that ffmpegdec->context->time_base is {num: 0, den: 1} (the initial value) so when passed to av_rescale_q as quotient we get division by zero. Easy fix: make test in gst_ffmpegdec_connect() check for num == 0 as well as den == 0.
Created attachment 51882 [details] [review] gst-plugins-ffmpeg-0.8.6-sigfpe.patch
A similar patch already exists in 0.8 cvs, thanks anyway :)