# HG changeset patch # User jbr # Date 1236015173 0 # Node ID 39425084bd5cf1bfb02030c442133df78f08b753 # Parent e9ba8210d4951d41dcdc308dbf9e4c8988e957c9 flacdec: Use get/skip_bits_long() for more than 17-bits and get/skip_bits() for 17-bits or less. diff -r e9ba8210d495 -r 39425084bd5c flacdec.c --- 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);