diff --git a/configure.ac b/configure.ac
index b7542fb..624a48a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -522,7 +545,7 @@ AG_GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
 dnl *** celt ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_CELT, true)
 AG_GST_CHECK_FEATURE(CELT, [celt], celt, [
-  PKG_CHECK_MODULES(CELT, celt >= 0.4.0, [
+  PKG_CHECK_MODULES(CELT, celt >= 0.5.0, [
       HAVE_CELT="yes"], [
       HAVE_CELT="no"
       AC_MSG_RESULT(no)
diff --git a/ext/celt/gstceltenc.c b/ext/celt/gstceltenc.c
index d76fd88..f8ebce6 100644
--- a/ext/celt/gstceltenc.c
+++ b/ext/celt/gstceltenc.c
@@ -739,7 +739,7 @@ gst_celt_enc_encode (GstCeltEnc * enc, gboolean flush)
     GST_DEBUG_OBJECT (enc, "encoding %d samples (%d bytes)", frame_size, bytes);
 
     outsize =
-        celt_encode (enc->state, data, GST_BUFFER_DATA (outbuf),
+        celt_encode (enc->state, data, NULL, GST_BUFFER_DATA (outbuf),
         bytes_per_packet);
 
     g_free (data);
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index b861844..8f5fde7 100644
