changeset 6954:57797b6c9d59 libavcodec

new dba values requires running last 2 bit allocation stages
author jbr
date Sat, 31 May 2008 19:56:54 +0000
parents 64504967b891
children b2afb5049932
files ac3dec.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Sat May 31 16:04:41 2008 +0000
+++ b/ac3dec.c	Sat May 31 19:56:54 2008 +0000
@@ -1005,6 +1005,9 @@
                     s->dba_lengths[ch][seg] = get_bits(gbc, 4);
                     s->dba_values[ch][seg] = get_bits(gbc, 3);
                 }
+                /* run last 2 bit allocation stages if new dba values */
+                bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2);
+
             }
         }
     } else if(blk == 0) {