Browse Source

avcodec/shorten: use init_get_bits8()

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

+ 2
- 1
libavcodec/shorten.c View File

@@ -466,7 +466,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
}
}
/* init and position bitstream reader */
init_get_bits(&s->gb, buf, buf_size * 8);
if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0)
return ret;
skip_bits(&s->gb, s->bitindex);

/* process header or next subblock */


Loading…
Cancel
Save