From 1cb41b830962ee7b038cdd90a46dc11eea443561 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Wed, 3 Aug 2016 21:33:13 +0200 Subject: [PATCH] Workaround for another kind of decoder corruption --- src/phoneExtraction.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/phoneExtraction.cpp b/src/phoneExtraction.cpp index 5d8a7e8..33322f7 100644 --- a/src/phoneExtraction.cpp +++ b/src/phoneExtraction.cpp @@ -135,6 +135,11 @@ BoundedTimeline recognizeWords(const AudioClip& inputAudioClip, ps_decod ps_seg_frames(it, &firstFrame, &lastFrame); result.set(centiseconds(firstFrame), centiseconds(lastFrame + 1), word); } + if (result.size() == 2) { + // The two recognized words are "" and "", which is really nothing. + // This seems to trigger a similar decoder corruption. + decoderIsStillUsable = false; + } return result; }