auxdatae, crcrs fix by (Jean-Francois Panisset <panisset at comcast dot net>)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Feb 2004 19:15:19 +0000 (19:15 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Feb 2004 19:15:19 +0000 (19:15 +0000)
Originally committed as revision 2800 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3enc.c

index 25314e3..1ce534a 100644 (file)
@@ -735,6 +735,9 @@ static int compute_bit_allocation(AC3EncodeContext *s,
     /* (fsnoffset[4] + fgaincod[4]) * c */
     frame_bits += 2*4 + 3 + 6 + s->nb_all_channels * (4 + 3);
 
+    /* auxdatae, crcrsv */
+    frame_bits += 2;
+
     /* CRC */
     frame_bits += 16;