diff --git a/libs/audiographer/audiographer/general/chunker.h b/libs/audiographer/audiographer/general/chunker.h index 0ee0c20b20..d61c68dee4 100644 --- a/libs/audiographer/audiographer/general/chunker.h +++ b/libs/audiographer/audiographer/general/chunker.h @@ -67,7 +67,7 @@ class /*LIBAUDIOGRAPHER_API*/ Chunker position += frames_left; } - if (context.has_flag (ProcessContext::EndOfInput)) { + if (context.has_flag (ProcessContext::EndOfInput) && position > 0) { ProcessContext c_out (context, buffer, position); ListedSource::output (c_out); } diff --git a/libs/audiographer/audiographer/general/silence_trimmer.h b/libs/audiographer/audiographer/general/silence_trimmer.h index c0d6d73c4b..a715feb0c8 100644 --- a/libs/audiographer/audiographer/general/silence_trimmer.h +++ b/libs/audiographer/audiographer/general/silence_trimmer.h @@ -128,7 +128,7 @@ class /*LIBAUDIOGRAPHER_API*/ SilenceTrimmer check_flags (*this, c); if (throw_level (ThrowStrict) && in_end) { - throw Exception(*this, "process() after reacing end of input"); + throw Exception(*this, "process() after reaching end of input"); } in_end = c.has_flag (ProcessContext::EndOfInput);