GNOME Bugzilla – Bug 686829
opusdec: invalid gst_buffer_unmap() call for NULL buffer
Last modified: 2012-10-25 00:35:30 UTC
Created attachment 227207 [details] [review] This patch corrects the buffer unmap check The following pipeline reproduces the problem: gst-launch-1.0 audiotestsrc ! opusenc ! rtpgstpay ! identity drop-probability=0.2 ! queue ! rtpjitterbuffer do-lost=true mode=0 ! rtpgstdepay ! opusdec plc=true ! fakesink If PLC is turned on, the code tries to unmap a buffer that was not mapped in the first place. The reason for this is an erronous check in opus_dec_chain_parse_data() if unmapping can be done or not. It tests for buffer == NULL, but not for a buffer size of 0.
commit e6b05111d37291a56e5edaca35cc4663814c5c89 Author: Carlos Rafael Giani <dv@pseudoterminal.org> Date: Wed Oct 24 23:40:20 2012 +0200 opusdec: fixed buffer unmapping bug When the decoder received a NULL buffer, it tried to unmap a not mapped buffer. https://bugzilla.gnome.org/show_bug.cgi?id=686829