indeo2: init_get_bits size in bits instead of bytes
(cherry picked from commit 68ca330cbd
)
This commit is contained in:

committed by
Michael Niedermayer

parent
b2af83a9ed
commit
09cfd6f597
@@ -162,7 +162,7 @@ static int ir2_decode_frame(AVCodecContext *avctx,
|
|||||||
#endif
|
#endif
|
||||||
start = 48; /* hardcoded for now */
|
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 */
|
if (s->decode_delta) { /* intraframe */
|
||||||
ir2_decode_plane(s, avctx->width, avctx->height,
|
ir2_decode_plane(s, avctx->width, avctx->height,
|
||||||
|
Reference in New Issue
Block a user