shithub: aacenc

Download patch

ref: bde1d1cc6aab54c42dd2050b5dc3931cd3cd9a88
parent: f19cd8500dd6759b0e0614ad904dc788106326d9
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jul 16 05:43:52 EDT 2021

case-insensitively parse the object type argument

--- a/frontend/aacenc.c
+++ b/frontend/aacenc.c
@@ -65,11 +65,11 @@
 		break;
 	case 't':
 		s = EARGF(usage());
-		if(strcmp(s, "low") == 0)
+		if(cistrcmp(s, "low") == 0)
 			type = LOW;
-		else if(strcmp(s, "main") == 0)
+		else if(cistrcmp(s, "main") == 0)
 			type = MAIN;
-		else if(strcmp(s, "ltp") == 0)
+		else if(cistrcmp(s, "ltp") == 0)
 			type = LTP;
 		else
 			sysfatal("invalid type %s", s);