changeset 25:1f58ba0d79a4

pcmu2efr: brown paper bag
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 12 May 2024 04:34:15 +0000
parents c52fb8080faf
children 1794bf0fbcf7
files pcmu2efr/comb-out.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pcmu2efr/comb-out.c	Sun May 12 04:28:49 2024 +0000
+++ b/pcmu2efr/comb-out.c	Sun May 12 04:34:15 2024 +0000
@@ -25,6 +25,11 @@
 	generate_linear_inputs();
 	generate_std_efr();
 	generate_amr_efr();
+	outf = fopen(argv[1], "w");
+	if (!outf) {
+		perror(argv[1]);
+		exit(1);
+	}
 	fwrite(standard_efr, 31, 160, outf);
 	fwrite(amr_efr, 31, 160, outf);
 	fclose(outf);