alawdec: Each output sample is 2 bytes

This commit is contained in:
Olivier Crête 2012-01-27 16:27:49 +01:00
parent 87f2088303
commit a7c27e1aaa

View 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;