alawdec: Each output sample is 2 bytes
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 27 Jan 2012 15:27:49 +0000 (16:27 +0100)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 27 Jan 2012 18:05:24 +0000 (19:05 +0100)
gst/law/alaw-decode.c

index 4ea9612..e3b6586 100644 (file)
@@ -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;