diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-09-09 13:24:19 -0700 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-11 13:09:35 +0200 |
commit | 1656dd7a4e72fcf3405f08b56d7293d87a329d7b (patch) | |
tree | 71c16e81b13711dbdb4688aecbed7025e7719c06 /libavcodec/indeo2.c | |
parent | 144c80042b05b7e89abc16efcd52304548958d58 (diff) | |
download | ffmpeg-1656dd7a4e72fcf3405f08b56d7293d87a329d7b.tar.gz |
indeo2: init_get_bits size in bits instead of bytes
(cherry picked from commit 68ca330cbd479111db9cb7649d7530ad59f04cc8)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/indeo2.c')
-rw-r--r-- | libavcodec/indeo2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c index 0e588c3966..6cf893b15e 100644 --- a/libavcodec/indeo2.c +++ b/libavcodec/indeo2.c @@ -165,7 +165,7 @@ static int ir2_decode_frame(AVCodecContext *avctx, #endif start = 48; /* hardcoded for now */ - init_get_bits(&s->gb, buf + start, buf_size - start); + init_get_bits(&s->gb, buf + start, (buf_size - start) * 8); if (s->decode_delta) { /* intraframe */ ir2_decode_plane(s, avctx->width, avctx->height, |