diff options
Diffstat (limited to 'gst/rtp/gstrtpL16pay.c')
-rw-r--r-- | gst/rtp/gstrtpL16pay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpL16pay.c b/gst/rtp/gstrtpL16pay.c index 71e2ac30..c4468c56 100644 --- a/gst/rtp/gstrtpL16pay.c +++ b/gst/rtp/gstrtpL16pay.c @@ -164,11 +164,11 @@ gst_rtpL16enc_sinkconnect (GstPad * pad, GstCaps * caps) void gst_rtpL16enc_htons (GstBuffer *buf) { - guint16 *i, *len; + gint16 *i, *len; /* FIXME: is this code correct or even sane at all? */ - i = (guint16 *) GST_BUFFER_DATA(buf); - len = i + GST_BUFFER_SIZE (buf) / sizeof (guint16 *); + i = (gint16 *) GST_BUFFER_DATA(buf); + len = i + GST_BUFFER_SIZE (buf) / sizeof (gint16 *); for (; i<len; i++) { *i = g_htons (*i); |