diff options
author | Alexandra Hájková <alexandra@khirnov.net> | 2016-04-10 20:05:32 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-12-03 14:36:03 +0100 |
commit | 6fad5abcadd4373dc8ba900491a5a3c1a91851e4 (patch) | |
tree | 34ee58f289e8ea9076a3c03eb170e62a3df5bfcc /libavcodec/lagarithrac.c | |
parent | c3defda0d80e19146e71c7adbdfd9c251f36d8bd (diff) | |
download | ffmpeg-streaming-6fad5abcadd4373dc8ba900491a5a3c1a91851e4.zip ffmpeg-streaming-6fad5abcadd4373dc8ba900491a5a3c1a91851e4.tar.gz |
lagarith: Convert to the new bitstream reader
Diffstat (limited to 'libavcodec/lagarithrac.c')
-rw-r--r-- | libavcodec/lagarithrac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/lagarithrac.c b/libavcodec/lagarithrac.c index f9e4e5c..7441dc7 100644 --- a/libavcodec/lagarithrac.c +++ b/libavcodec/lagarithrac.c @@ -27,20 +27,20 @@ * @author David Conrad */ -#include "get_bits.h" +#include "bitstream.h" #include "lagarithrac.h" -void ff_lag_rac_init(lag_rac *l, GetBitContext *gb, int length) +void ff_lag_rac_init(lag_rac *l, BitstreamContext *bc, int length) { int i, j, left; /* According to reference decoder "1st byte is garbage", - * however, it gets skipped by the call to align_get_bits() + * however, it gets skipped by the call to bitstream_align() */ - align_get_bits(gb); - left = get_bits_left(gb) >> 3; + bitstream_align(bc); + left = bitstream_bits_left(bc) >> 3; l->bytestream_start = - l->bytestream = gb->buffer + get_bits_count(gb) / 8; + l->bytestream = bc->buffer + bitstream_tell(bc) / 8; l->bytestream_end = l->bytestream_start + FFMIN(length, left); l->range = 0x80; |