shithub: aacenc

Download patch

ref: eea06700407866bfb0ec73f01394b8c2fc37d59b
parent: 117b3365d161a0107ca4dcbfcd79554c5a1e4312
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Tue Aug 22 07:31:41 EDT 2017

print faac version header before help

--- a/frontend/main.c
+++ b/frontend/main.c
@@ -483,6 +483,19 @@
     signal(SIGTERM, signal_handler);
 #endif
 
+    // get faac version
+    if (faacEncGetVersion(&faac_id_string, &faac_copyright_string) ==
+        FAAC_CFG_VERSION)
+    {
+        fprintf(stderr, "Freeware Advanced Audio Coder\nFAAC %s\n\n",
+                faac_id_string);
+    }
+    else
+    {
+        fprintf(stderr, __FILE__ "(%d): wrong libfaac version\n", __LINE__);
+        return 1;
+    }
+
     /* begin process command line */
     progName = argv[0];
     if (argc < 2)
@@ -765,19 +778,6 @@
             return 1;
             break;
         }
-    }
-
-    // get faac version
-    if (faacEncGetVersion(&faac_id_string, &faac_copyright_string) ==
-        FAAC_CFG_VERSION)
-    {
-        fprintf(stderr, "Freeware Advanced Audio Coder\nFAAC %s\n\n",
-                faac_id_string);
-    }
-    else
-    {
-        fprintf(stderr, __FILE__ "(%d): wrong libfaac version\n", __LINE__);
-        return 1;
     }
 
     /* check that we have at least one non-option arguments */