I bet you didn't try if the fix worked, BBB ;)
Original commit message from CVS: I bet you didn't try if the fix worked, BBB ;) Fixed it the right way now.
This commit is contained in:
parent
be5bc7e051
commit
51b189fe1e
@ -212,8 +212,8 @@ gst_alawenc_chain (GstPad *pad,GstBuffer *buf)
|
|||||||
alaw_data = (guint8*)GST_BUFFER_DATA(outbuf);
|
alaw_data = (guint8*)GST_BUFFER_DATA(outbuf);
|
||||||
for (i = 0; i < GST_BUFFER_SIZE(outbuf); i++) {
|
for (i = 0; i < GST_BUFFER_SIZE(outbuf); i++) {
|
||||||
*alaw_data = s16_to_alaw (*linear_data);
|
*alaw_data = s16_to_alaw (*linear_data);
|
||||||
*alaw_data += 1;
|
alaw_data++;
|
||||||
*linear_data += 1;
|
linear_data++;
|
||||||
}
|
}
|
||||||
gst_buffer_unref(buf);
|
gst_buffer_unref(buf);
|
||||||
gst_pad_push(alawenc->srcpad,outbuf);
|
gst_pad_push(alawenc->srcpad,outbuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user