From a7c27e1aaa9f68ef62b6e57ec2f96f9d18a0d319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 27 Jan 2012 16:27:49 +0100 Subject: [PATCH] alawdec: Each output sample is 2 bytes --- gst/law/alaw-decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index 4ea9612b35..e3b6586a1b 100644 --- a/gst/law/alaw-decode.c +++ b/gst/law/alaw-decode.c @@ -327,7 +327,7 @@ gst_alaw_dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) alaw_data = inmap.data; alaw_size = inmap.size; - outbuf = gst_buffer_new_allocate (NULL, alaw_size, 0); + outbuf = gst_buffer_new_allocate (NULL, alaw_size * 2, 0); gst_buffer_map (outbuf, &outmap, GST_MAP_WRITE); linear_data = (gint16 *) outmap.data;