shithub: aacenc

Download patch

ref: 9390b896f44eb4ad0494b762bb6ef2e78cd3f91f
parent: 82edb2aff5e7f0f00e5c921e591274591f338635
author: sur <sur>
date: Mon Jul 10 08:04:47 EDT 2006

Made WriteCPE DRM compatible

--- a/libfaac/bitstream.c
+++ b/libfaac/bitstream.c
@@ -24,7 +24,7 @@
 Copyright (c) 1997.
 **********************************************************************/
 /*
- * $Id: bitstream.c,v 1.32 2006/07/07 12:20:51 sur Exp $
+ * $Id: bitstream.c,v 1.33 2006/07/10 12:04:47 sur Exp $
  */
 
 #include <stdio.h>
@@ -391,6 +391,7 @@
 {
     int bits = 0;
 
+#ifndef DRM
     if (writeFlag) {
         /* write ID_CPE, single_element_channel() identifier */
         PutBit(bitStream, ID_CPE, LEN_SE_ID);
@@ -405,6 +406,7 @@
     bits += LEN_SE_ID;
     bits += LEN_TAG;
     bits += LEN_COM_WIN;
+#endif
 
     /* if common_window, write ics_info */
     if (channelInfo->common_window) {