1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
This patch allows providing "-pc LONGEST" argument in lowercase.
Bug reported by chaered: https://bugs.launchpad.net/ubuntu/+source/speech-tools/+bug/723854
Author: Sergio Oller <sergioller@gmail.com>
Applied-Upstream: https://github.com/festvox/speech_tools/pull/6
--- a/main/ch_wave_main.cc
+++ b/main/ch_wave_main.cc
@@ -203,7 +203,7 @@ int main (int argc, char *argv[])
wave_info(sigload);
else if (al.present("-pc"))
{
- if ((al.val("-pc") == "longest") &&
+ if ((downcase(al.val("-pc")) == "longest") &&
(sig.num_samples() < sigload.num_samples()))
sig.resize(sigload.num_samples());
else /* "first" or sig is longer */
|