summaryrefslogtreecommitdiffstats
path: root/ext/faad
diff options
context:
space:
mode:
Diffstat (limited to 'ext/faad')
-rw-r--r--ext/faad/gstfaad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 6c526c32..5aea2317 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -157,7 +157,8 @@ gst_faad_sinkconnect (GstPad * pad, const GstCaps * caps)
guchar channels;
buf = g_value_get_boxed (value);
- if (faacDecInit2 (faad->handle, GST_BUFFER_DATA (buf),
+ /* someone forgot that char can be unsigned when writing the API */
+ if ((gint8) faacDecInit2 (faad->handle, GST_BUFFER_DATA (buf),
GST_BUFFER_SIZE (buf), &samplerate, &channels) < 0)
return GST_PAD_LINK_REFUSED;