From 276228da806728723fecde73b539c0c33863d761 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Fri, 13 Mar 2009 19:42:18 +0100 Subject: celtenc: build with celt 0.5. --- ext/celt/gstceltenc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/celt/gstceltenc.c b/ext/celt/gstceltenc.c index d76fd886..11b57e55 100644 --- a/ext/celt/gstceltenc.c +++ b/ext/celt/gstceltenc.c @@ -738,9 +738,15 @@ gst_celt_enc_encode (GstCeltEnc * enc, gboolean flush) GST_DEBUG_OBJECT (enc, "encoding %d samples (%d bytes)", frame_size, bytes); +#ifdef HAVE_CELT_0_4 outsize = - celt_encode (enc->state, data, GST_BUFFER_DATA (outbuf), - bytes_per_packet); + celt_encode (enc->state, data, + GST_BUFFER_DATA (outbuf), bytes_per_packet); +#else + outsize = + celt_encode (enc->state, data, NULL, + GST_BUFFER_DATA (outbuf), bytes_per_packet); +#endif g_free (data); -- cgit v1.2.1