shithub: aacenc

Download patch

ref: 4fde4ec89c983fb8e86efd1bf9b31b880d99e2e9
parent: ad8538d9827f94c0fa7c0811b9db0c214be0fbd4
author: menno <menno>
date: Tue Apr 3 06:35:10 EDT 2001

Re: ADTS layer fixed for MPEG-4

--- a/libfaac/bitstream.c
+++ b/libfaac/bitstream.c
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: bitstream.c,v 1.9 2001/04/03 09:13:47 menno Exp $
+ * $Id: bitstream.c,v 1.10 2001/04/03 10:35:10 menno Exp $
  */
 
 #include <stdlib.h>
@@ -181,11 +181,7 @@
 		/* Fixed ADTS header */
 		PutBit(bitStream, 0xFFFF, 12); /* 12 bit Syncword */
 		PutBit(bitStream, 1, 1); /* ID */
-#ifdef MPEG2AAC
-		PutBit(bitStream, 0, 2); /* layer == 0 for MPEG2 AAC */
-#else
-		PutBit(bitStream, 4, 2); /* layer == 4 for MPEG4 AAC */
-#endif
+		PutBit(bitStream, 0, 2); /* layer == 0 */
 		PutBit(bitStream, 1, 1); /* protection absent */
 		PutBit(bitStream, hEncoder->config.aacProfile, 2); /* profile */
 		PutBit(bitStream, hEncoder->sampleRateIdx, 4); /* sampling rate */