GNOME Bugzilla – Bug 789408
gst-plugins-good: alaw-encode: Handled buffer mapping failure
Last modified: 2018-05-07 16:06:49 UTC
Buffer mapping failure must be handled at below:- File: gst-plugins-good-1.12.3/gst/law/alaw-encode.c Function: gst_alaw_enc_handle_frame ... gst_buffer_map (buffer, &inmap, GST_MAP_READ); linear_data = (gint16 *) inmap.data; linear_size = inmap.size; alaw_size = linear_size / 2; outbuf = gst_audio_encoder_allocate_output_buffer (audioenc, alaw_size); g_assert (outbuf); gst_buffer_map (outbuf, &outmap, GST_MAP_WRITE); alaw_data = outmap.data; ... Failure of gst_buffer_map must be handled.
Created attachment 362188 [details] [review] [PATCH] gst-plugins-good: alaw-encode: Handled buffer mapping failure Please review the patch attached to fix the issue and share your feedback.
See https://bugzilla.gnome.org/show_bug.cgi?id=789506#c2 . This can't fail here