summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-09-09 13:24:19 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-11-03 03:26:11 +0100
commit70f01f12626caacd3926e11ac1ebc705e67016e7 (patch)
treee06f469751760f9970d12471caa449f9e12cdb01
parent80fb9f2c57c1b76c76948ee3dad6b5bb6f381436 (diff)
downloadffmpeg-70f01f12626caacd3926e11ac1ebc705e67016e7.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>
-rw-r--r--libavcodec/indeo2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c
index 40c561a559..e1bfd08870 100644
--- a/libavcodec/indeo2.c
+++ b/libavcodec/indeo2.c
@@ -162,7 +162,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,