[Ffmpeg-cvslog] r8450 - trunk/libavcodec/ac3.c

jbr subversion
Tue Mar 20 03:12:13 CET 2007


Author: jbr
Date: Tue Mar 20 03:12:13 2007
New Revision: 8450

Modified:
   trunk/libavcodec/ac3.c

Log:
fix handling of special case for lowest snroffset. regressions are unaffected.

Modified: trunk/libavcodec/ac3.c
==============================================================================
--- trunk/libavcodec/ac3.c	(original)
+++ trunk/libavcodec/ac3.c	Tue Mar 20 03:12:13 2007
@@ -175,6 +175,12 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *
 {
     int i, j, k, end1, v, address;
 
+    /* special case, if snroffset is -960, set all bap's to zero */
+    if(snroffset == -960) {
+        memset(bap, 0, 256);
+        return;
+    }
+
     i = start;
     j = masktab[start];
     do {




More information about the ffmpeg-cvslog mailing list