--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -58,8 +58,10 @@
 #undef faacDecInit2
 #endif
 
 extern long faacDecInit (faacDecHandle, guint8 *, guint32, guint32 *, guint8 *);
-extern int8_t faacDecInit2 (faacDecHandle, guint8 *, guint32,
+extern gint8 faacDecInit2 (faacDecHandle, guint8 *, guint32,
     guint32 *, guint8 *);
 
 GST_DEBUG_CATEGORY_STATIC (faad_debug);
diff --git a/ext/gsm/gstgsmdec.c b/ext/gsm/gstgsmdec.c
index 35dd177..f3a8390 100644
