# HG changeset patch # User al3x # Date 1059140168 0 # Node ID f0d3fdee007e6339d0e76acda8ae55828d60657a # Parent 1831d86117a37aace4cbf3d29acfb2ee06c7dc2e get_bits -> skip_bits diff -r 1831d86117a3 -r f0d3fdee007e svq1.c --- a/svq1.c Fri Jul 25 13:15:16 2003 +0000 +++ b/svq1.c Fri Jul 25 13:36:08 2003 +0000 @@ -616,9 +616,9 @@ printf ("embedded message: \"%s\"\n", (char *) msg); } - get_bits (bitbuf, 2); - get_bits (bitbuf, 2); - get_bits (bitbuf, 1); + skip_bits (bitbuf, 2); + skip_bits (bitbuf, 2); + skip_bits1 (bitbuf); /* load frame size */ frame_size_code = get_bits (bitbuf, 3); @@ -639,21 +639,21 @@ /* unknown fields */ if (get_bits (bitbuf, 1) == 1) { - get_bits (bitbuf, 1); /* use packet checksum if (1) */ - get_bits (bitbuf, 1); /* component checksums after image data if (1) */ + skip_bits1 (bitbuf); /* use packet checksum if (1) */ + skip_bits1 (bitbuf); /* component checksums after image data if (1) */ if (get_bits (bitbuf, 2) != 0) return -1; } if (get_bits (bitbuf, 1) == 1) { - get_bits (bitbuf, 1); - get_bits (bitbuf, 4); - get_bits (bitbuf, 1); - get_bits (bitbuf, 2); + skip_bits1 (bitbuf); + skip_bits (bitbuf, 4); + skip_bits1 (bitbuf); + skip_bits (bitbuf, 2); while (get_bits (bitbuf, 1) == 1) { - get_bits (bitbuf, 8); + skip_bits (bitbuf, 8); } }