shithub: opus-tools

Download patch

ref: dc278cc6ae1e37aeac4e26b81c496c47a3045dd2
parent: 45fcaf8ec39b14bd700b15eed52373c5bb947dd5
author: Jean-Marc Valin <jean-marc.valin@usherbrooke.ca>
date: Mon Aug 1 08:15:31 EDT 2011

Properly determine the frame size in opusdec

--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -558,7 +558,7 @@
                      fprintf (stderr, "Decoding error: %s\n", opus_strerror(ret));
                      break;
                   }
-
+                  frame_size = ret;
                   if (print_bitrate) {
                      opus_int32 tmp=op.bytes;
                      char ch=13;