shithub: opus

Download patch

ref: 8c9c9b280dd4ced13823d23d436c6e86364227ae
parent: 9283114fa1096355ac1a8e25a7f524106963a4ab
author: Jean-Marc Valin <[email protected]>
date: Tue Dec 4 19:53:05 EST 2012

Fixes a multi-frame FEC issue that was caught by valgrind

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -779,7 +779,7 @@
       if (frame_size <= packet_frame_size || packet_mode == MODE_CELT_ONLY || st->mode == MODE_CELT_ONLY)
          return opus_decode_native(st, NULL, 0, pcm, frame_size, 0, 0, NULL);
       /* Otherwise, run the PLC on everything except the size for which we might have FEC */
-      ret = opus_decode_frame(st, NULL, 0, pcm, frame_size-packet_frame_size, 0);
+      ret = opus_decode_native(st, NULL, 0, pcm, frame_size-packet_frame_size, 0, 0, NULL);
       if (ret<0)
          return ret;
       /* Complete with FEC */