GNOME Bugzilla – Bug 758912
avimux: don't crash if we never got audio caps before stopping
Last modified: 2015-12-07 09:57:57 UTC
Created attachment 316620 [details] [review] patch auds.blockalign is set once the first caps arrive. If gst_avi_mux_stop_file() is called before this happens then auds.blockalign is zero and gst_avi_mux_audsink_set_fields() cause a crash: [...] avipad->parent.hdr.rate = avipad->auds.av_bps / avipad->auds.blockalign; [...]
commit 4c50ad0e27bfc431541897507c2bc6b90080aac7 Author: Michael Olbrich <m.olbrich@pengutronix.de> Date: Wed Nov 18 16:10:11 2015 +0100 avimux: don't crash if we never got audio caps before stopping auds.blockalign is set once the first caps arrive. If gst_avi_mux_stop_file() is called before this happens then auds.blockalign is zero and gst_avi_mux_audsink_set_fields() cause a crash: [...] avipad->parent.hdr.rate = avipad->auds.av_bps / avipad->auds.blockalign; [...] https://bugzilla.gnome.org/show_bug.cgi?id=758912