indeo2: init_get_bits size in bits instead of bytes
(cherry picked from commit 68ca330cbd479111db9cb7649d7530ad59f04cc8)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c
index 40c561a..e1bfd08 100644
--- a/libavcodec/indeo2.c
+++ b/libavcodec/indeo2.c
@@ -162,7 +162,7 @@
#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,