[Bug 758912] avimux: don't crash if we never got audio caps before stopping

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Dec 1 10:11:14 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=758912

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |slomo at coaxion.net
         Resolution|---                         |FIXED

--- Comment #1 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
commit 4c50ad0e27bfc431541897507c2bc6b90080aac7
Author: Michael Olbrich <m.olbrich at 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

-- 
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