Skip to content

audioconvert, audioresample, audiofilter: fix divide by 0 for input buffer without caps

gst-launch-1.0 audiotestsrc ! udpsink host=127.0.0.1 gst-launch-1.0 udpsrc ! audioconvert ! autoaudiosink

would crash with a floating point exception when clipping the input buffer owing to a division by zero because no caps event was received.


Wasn't sure if this should go outside the if segment.format == TIME block or not, but put it inside for now because that's where the crash happens.

Edited by Tim-Philipp Müller

Merge request reports