]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
flacdec: Use get/skip_bits_long() for more than 17-bits and
authorjbr <jbr@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 2 Mar 2009 17:32:53 +0000 (17:32 +0000)
committerjbr <jbr@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 2 Mar 2009 17:32:53 +0000 (17:32 +0000)
get/skip_bits() for 17-bits or less.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17735 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/flacdec.c

index b3592f418307a9366e83ca2e7787402e605436f4..5350d025c2b393727b0e22de893e39d0c902a74c 100644 (file)
@@ -206,10 +206,10 @@ void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
         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 @@ static int metadata_parse(FLACContext *s)
     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);