Browse Source

avcodec/mpc8: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.3
Paul B Mahol 9 years ago
parent
commit
207fa224a0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/mpc8.c

+ 3
- 1
libavcodec/mpc8.c View File

@@ -261,7 +261,9 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
memset(c->Q, 0, sizeof(c->Q));
c->last_bits_used = 0;
}
init_get_bits(gb, buf, buf_size * 8);
if ((res = init_get_bits8(gb, buf, buf_size)) < 0)
return res;

skip_bits(gb, c->last_bits_used & 7);

if(keyframe)


Loading…
Cancel
Save