diff ffstools/tiaud/decomp.c @ 834:c458e33060bf

ffstools/tiaud: prep for adding support for new AEC
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 30 Jul 2021 00:10:13 +0000
parents 568e2a2b49c8
children 516066ac5bc1
line wrap: on
line diff
--- a/ffstools/tiaud/decomp.c	Tue Jun 22 02:28:18 2021 +0000
+++ b/ffstools/tiaud/decomp.c	Fri Jul 30 00:10:13 2021 +0000
@@ -32,11 +32,11 @@
 		fprintf(stderr, "%s is not a regular file\n", filename);
 		exit(1);
 	}
-	if (st.st_size != sizeof(struct audio_cfg_bin)) {
+	if (st.st_size != MODE_FILE_SIZE_OLDAEC) {
 		fprintf(stderr, "%s has the wrong length\n", filename);
 		exit(1);
 	}
-	read(fd, &bin, sizeof bin);
+	read(fd, &bin, MODE_FILE_SIZE_OLDAEC);
 	close(fd);
 }