diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-06-06 13:20:17 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-02-07 18:27:21 +0100 |
commit | a25dac976a4478331e4db86d44c3db4456c93eff (patch) | |
tree | be0638f8ebcb9e00dfdad10a73d0fc5ccee03293 /libavcodec/dvbsubdec.c | |
parent | 71a49fe25f2e4468fbbadbebef8d073b1b3cc1a5 (diff) | |
download | ffmpeg-a25dac976a4478331e4db86d44c3db4456c93eff.tar.gz |
Use bitstream_init8() where appropriate
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r-- | libavcodec/dvbsubdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 2b9760fb35..6530847dff 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -336,7 +336,7 @@ static int dvbsub_read_2bit_string(uint8_t *destbuf, int dbuf_len, int run_length; int pixels_read = 0; - bitstream_init(&bc, *srcbuf, buf_size << 3); + bitstream_init8(&bc, *srcbuf, buf_size); while (bitstream_tell(&bc) < buf_size << 3 && pixels_read < dbuf_len) { bits = bitstream_read(&bc, 2); @@ -441,7 +441,7 @@ static int dvbsub_read_4bit_string(uint8_t *destbuf, int dbuf_len, int run_length; int pixels_read = 0; - bitstream_init(&bc, *srcbuf, buf_size << 3); + bitstream_init8(&bc, *srcbuf, buf_size); while (bitstream_tell(&bc) < buf_size << 3 && pixels_read < dbuf_len) { bits = bitstream_read(&bc, 4); |