diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-06 11:43:42 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-06 11:43:42 +0200 | 
| commit | fdc9c2bdd04302b5c3a72f1bd0fd8f5880c08fc2 (patch) | |
| tree | 25828c688f30101b0b45d1906d1d5c1652025c72 /src/odr-sourcecompanion.cpp | |
| parent | 8ff6ef298a939422d86d6cc58bf611f3f5165d8e (diff) | |
| download | ODR-SourceCompanion-fdc9c2bdd04302b5c3a72f1bd0fd8f5880c08fc2.tar.gz ODR-SourceCompanion-fdc9c2bdd04302b5c3a72f1bd0fd8f5880c08fc2.tar.bz2 ODR-SourceCompanion-fdc9c2bdd04302b5c3a72f1bd0fd8f5880c08fc2.zip | |
Fix truncation of output data when decoder is used
Diffstat (limited to 'src/odr-sourcecompanion.cpp')
| -rw-r--r-- | src/odr-sourcecompanion.cpp | 4 | 
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; | 
