opusdec: fix decoding
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 28 Sep 2011 13:57:02 +0000 (14:57 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 3 Oct 2011 09:21:37 +0000 (11:21 +0200)
A simple ... opusenc ! opusdec ... pipeline now works.

https://bugzilla.gnome.org/show_bug.cgi?id=660364

ext/opus/gstopusdec.c

index ae0b0bc..35f501a 100644 (file)
@@ -785,7 +785,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buf,
 
   GST_LOG_OBJECT (dec, "decoding frame");
 
-  n = opus_decode (dec->state, data, size, out_data, dec->frame_samples, TRUE);
+  n = opus_decode (dec->state, data, size, out_data, dec->frame_samples, 0);
   if (n < 0) {
     GST_ELEMENT_ERROR (dec, STREAM, DECODE, ("Decoding error: %d", n), (NULL));
     return GST_FLOW_ERROR;