mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
gst/speexresample/gstspeexresample.c: The length for the buffer conversion function is the number of audio frames, i....
Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_convert_buffer): The length for the buffer conversion function is the number of audio frames, i.e. we need to multiply it by the number of channels to get the number of values. Also spotted by the unit test after running in valgrind.
This commit is contained in:
parent
b2cbf8f91d
commit
35a5ad819d
1 changed files with 2 additions and 0 deletions
|
@ -569,6 +569,8 @@ static void
|
|||
gst_speex_resample_convert_buffer (GstSpeexResample * resample,
|
||||
const guint8 * in, guint8 * out, guint len, gboolean inverse)
|
||||
{
|
||||
len *= resample->channels;
|
||||
|
||||
if (inverse) {
|
||||
if (resample->width == 8 && !resample->fp) {
|
||||
gint8 *o = (gint8 *) out;
|
||||
|
|
Loading…
Reference in a new issue