# HG changeset patch # User Mychaela Falconia # Date 1715066429 0 # Node ID cf90077b753c1d3061f612944ed6cb097b124fc8 # Parent 1ceda5586d016ff7105bae4432f79cb7b46c8171 twamr-tseq-enc: treat dribble input as non-fatal 3GPP VAD2 test sequences dt22.inp and dt23.inp have incomplete frames at the end, hence we need to ignore that dribble in a non-fatal manner in order to pass all tests. diff -r 1ceda5586d01 -r cf90077b753c amrtest/tseq-enc.c --- a/amrtest/tseq-enc.c Tue May 07 06:27:20 2024 +0000 +++ b/amrtest/tseq-enc.c Tue May 07 07:20:29 2024 +0000 @@ -27,10 +27,10 @@ cc = fread(pcm, 2, 160, inf); if (cc == 0) return 0; - if (cc != 160) { - fprintf(stderr, "error: short read from %s\n", + if (cc < 160) { + fprintf(stderr, "warning: incomplete frame at the end of %s\n", filename_for_errs); - exit(1); + return 0; } return 1; }