changeset 9094:39425084bd5c libavcodec

flacdec: Use get/skip_bits_long() for more than 17-bits and get/skip_bits() for 17-bits or less.
author jbr
date Mon, 02 Mar 2009 17:32:53 +0000
parents e9ba8210d495
children 50e847b72cdd
files flacdec.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flacdec.c	Mon Mar 02 17:18:49 2009 +0000
+++ b/flacdec.c	Mon Mar 02 17:32:53 2009 +0000
@@ -206,10 +206,10 @@
         avctx->sample_fmt = SAMPLE_FMT_S16;
 
     s->samples  = get_bits_long(&gb, 32) << 4;
-    s->samples |= get_bits_long(&gb, 4);
+    s->samples |= get_bits(&gb, 4);
 
-    skip_bits(&gb, 64); /* md5 sum */
-    skip_bits(&gb, 64); /* md5 sum */
+    skip_bits_long(&gb, 64); /* md5 sum */
+    skip_bits_long(&gb, 64); /* md5 sum */
 
     dump_headers(avctx, s);
 }
@@ -227,7 +227,7 @@
     int initial_pos= get_bits_count(&s->gb);
 
     if (show_bits_long(&s->gb, 32) == MKBETAG('f','L','a','C')) {
-        skip_bits(&s->gb, 32);
+        skip_bits_long(&s->gb, 32);
 
         do {
             metadata_last = get_bits1(&s->gb);