Browse Source

avcodec/fraps: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.8
Paul B Mahol 10 years ago
parent
commit
9136e65c40
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/fraps.c

+ 3
- 1
libavcodec/fraps.c View File

@@ -105,7 +105,9 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
s->bdsp.bswap_buf((uint32_t *) s->tmpbuf, s->bdsp.bswap_buf((uint32_t *) s->tmpbuf,
(const uint32_t *) src, size >> 2); (const uint32_t *) src, size >> 2);


init_get_bits(&gb, s->tmpbuf, size * 8);
if ((ret = init_get_bits8(&gb, s->tmpbuf, size)) < 0)
return ret;

for (j = 0; j < h; j++) { for (j = 0; j < h; j++) {
for (i = 0; i < w*step; i += step) { for (i = 0; i < w*step; i += step) {
dst[i] = get_vlc2(&gb, vlc.table, VLC_BITS, 3); dst[i] = get_vlc2(&gb, vlc.table, VLC_BITS, 3);


Loading…
Cancel
Save