aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/odr-sourcecompanion.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/odr-sourcecompanion.cpp b/src/odr-sourcecompanion.cpp
index b687105..bbcb310 100644
--- a/src/odr-sourcecompanion.cpp
+++ b/src/odr-sourcecompanion.cpp
@@ -406,10 +406,8 @@ int main(int argc, char *argv[])
if (numOutBytes % 120 != 0) {
throw runtime_error("Invalid data length " + to_string(numOutBytes));
}
- numOutBytes /= 120;
- numOutBytes *= 110;
- decoder.decode_frame(outbuf.data(), numOutBytes);
+ decoder.decode_frame(outbuf.data(), numOutBytes / 120 * 110);
auto p = decoder.get_peaks();
peak_left = p.peak_left;