shithub: aacenc

Download patch

ref: 69c6c69dbf8c577706369b7c0802d61a94d2e853
parent: e6a55f8c9dc4510dea962e551628c501f8b38b6a
author: danchr <danchr>
date: Wed Mar 24 06:09:06 EST 2004

prettify the way stream format is handled - this just *might* fix a bug

--- a/frontend/main.c
+++ b/frontend/main.c
@@ -18,7 +18,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: main.c,v 1.58 2004/03/24 11:00:40 danchr Exp $
+ * $Id: main.c,v 1.59 2004/03/24 11:09:06 danchr Exp $
  */
 
 #ifdef _MSC_VER
@@ -76,8 +76,8 @@
 #endif
 
 enum stream_format {
-  ADTS_STREAM,
-  RAW_STREAM,
+  RAW_STREAM = 0,
+  ADTS_STREAM = 1,
 };
 
 enum container_format {
@@ -562,7 +562,7 @@
     myFormat->bandWidth = cutOff;
     if (quantqual > 0)
         myFormat->quantqual = quantqual;
-    myFormat->outputFormat = stream == ADTS_STREAM;
+    myFormat->outputFormat = stream;
     myFormat->inputFormat = FAAC_INPUT_FLOAT;
     if (!faacEncSetConfiguration(hEncoder, myFormat)) {
         fprintf(stderr, "Unsupported output format!\n");
@@ -829,6 +829,9 @@
 
 /*
 $Log: main.c,v $
+Revision 1.59  2004/03/24 11:09:06  danchr
+prettify the way stream format is handled - this just *might* fix a bug
+
 Revision 1.58  2004/03/24 11:00:40  danchr
 silence a few warnings and fix a few mem. leaks
 make it possible to disable stripping (needed for profiling and debugging)