changeset 12091:c2a1bb63bd30 libavcodec

DCA: *_bits() -> *_bits_long() where needed, half fix for broken bitstream parsing
author banan
date Mon, 05 Jul 2010 01:43:47 +0000
parents 82d32c82289d
children de9e45d04063
files dca.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dca.c	Sun Jul 04 19:03:04 2010 +0000
+++ b/dca.c	Mon Jul 05 01:43:47 2010 +0000
@@ -1290,10 +1290,10 @@
     num_core_channels = s->prim_channels;
 
     /* extensions start at 32-bit boundaries into bitstream */
-    skip_bits(&s->gb, (-get_bits_count(&s->gb)) & 31);
+    skip_bits_long(&s->gb, (-get_bits_count(&s->gb)) & 31);
 
     while(get_bits_left(&s->gb) >= 32) {
-        uint32_t bits = get_bits(&s->gb, 32);
+        uint32_t bits = get_bits_long(&s->gb, 32);
 
         switch(bits) {
         case 0x5a5a5a5a: {
@@ -1328,7 +1328,7 @@
             break;
         }
 
-        skip_bits(&s->gb, (-get_bits_count(&s->gb)) & 31);
+        skip_bits_long(&s->gb, (-get_bits_count(&s->gb)) & 31);
     }
 
     channels = s->prim_channels + !!s->lfe;