summaryrefslogtreecommitdiff
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-08-09 00:57:36 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-08-09 00:57:36 +0000
commit7ae7300ee3bc830d9ece8c4c1fa27330b76c8218 (patch)
tree026875fae10a86165c66c87b3dcd490bcf35f204 /libavcodec/alac.c
parent7f95d9f620c680b254dfc0ca3add1cba0f8532c0 (diff)
downloadffmpeg-7ae7300ee3bc830d9ece8c4c1fa27330b76c8218.tar.gz
use skip_bits where appropriate
Originally committed as revision 10004 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 2f08f2d3b5..b9edf596a9 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -201,9 +201,9 @@ static void bastardized_rice_decompress(ALACContext *alac,
if (extrabits > 1) {
x += extrabits - 1;
- get_bits(&alac->gb, k);
+ skip_bits(&alac->gb, k);
} else
- get_bits(&alac->gb, k - 1);
+ skip_bits(&alac->gb, k - 1);
}
}
@@ -250,9 +250,9 @@ static void bastardized_rice_decompress(ALACContext *alac,
if (extrabits < 2) {
x = 1 - extrabits;
block_size += x;
- get_bits(&alac->gb, k - 1);
+ skip_bits(&alac->gb, k - 1);
} else {
- get_bits(&alac->gb, k);
+ skip_bits(&alac->gb, k);
}
}
@@ -484,9 +484,9 @@ static int alac_decode_frame(AVCodecContext *avctx,
/* 2^result = something to do with output waiting.
* perhaps matters if we read > 1 frame in a pass?
*/
- get_bits(&alac->gb, 4);
+ skip_bits(&alac->gb, 4);
- get_bits(&alac->gb, 12); /* unknown, skip 12 bits */
+ skip_bits(&alac->gb, 12); /* unknown, skip 12 bits */
/* the output sample size is stored soon */
hassize = get_bits1(&alac->gb);