Browse Source

avcodec/indeo2: use init_get_bits8

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.0
Paul B Mahol 10 years ago
parent
commit
484cc66f57
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/indeo2.c

+ 2
- 1
libavcodec/indeo2.c View File

@@ -165,7 +165,8 @@ static int ir2_decode_frame(AVCodecContext *avctx,
buf[i] = ff_reverse[buf[i]];
#endif

init_get_bits(&s->gb, buf + start, (buf_size - start) * 8);
if ((ret = init_get_bits8(&s->gb, buf + start, buf_size - start)) < 0)
return ret;

if (s->decode_delta) { /* intraframe */
if ((ret = ir2_decode_plane(s, avctx->width, avctx->height,


Loading…
Cancel
Save