diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2003-07-25 13:36:08 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2003-07-25 13:36:08 +0000 |
commit | 0c938bd10267a3f41c3ec9f5a82e2c7eaad511f7 (patch) | |
tree | 9909cef09bed28bb086bb4dc6909de9551e456de | |
parent | 669e5093f63eda266e310d304ffc4a37a8c382a2 (diff) | |
download | ffmpeg-0c938bd10267a3f41c3ec9f5a82e2c7eaad511f7.tar.gz |
get_bits -> skip_bits
Originally committed as revision 2083 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/svq1.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c index 54690d3dae..bce7996399 100644 --- a/libavcodec/svq1.c +++ b/libavcodec/svq1.c @@ -616,9 +616,9 @@ static int svq1_decode_frame_header (GetBitContext *bitbuf,MpegEncContext *s) { 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 @@ static int svq1_decode_frame_header (GetBitContext *bitbuf,MpegEncContext *s) { /* 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); } } |