diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-04-19 16:45:50 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-04-19 16:45:50 +1000 |
| commit | 4c77950e702a329f3136456a932efbea36e03d42 (patch) | |
| tree | 5df7e8717b751846655c16b50c352712b642658b /src/audio/audio_decoder.cpp | |
| parent | 561f9d2a07ee6ee1c2f18dc375125f87ea7b0d55 (diff) | |
| download | tangara-fw-4c77950e702a329f3136456a932efbea36e03d42.tar.gz | |
Pipeline working and outputting correctly, but noisy
Diffstat (limited to 'src/audio/audio_decoder.cpp')
| -rw-r--r-- | src/audio/audio_decoder.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp index af9abb94..4b9826a9 100644 --- a/src/audio/audio_decoder.cpp +++ b/src/audio/audio_decoder.cpp @@ -128,7 +128,10 @@ auto AudioDecoder::Process(const std::vector<InputStream>& inputs, } } - input->consume(current_codec_->GetInputPosition() - 1); + std::size_t pos = current_codec_->GetInputPosition(); + if (pos > 0) { + input->consume(pos - 1); + } } } // namespace audio |
