avcodec/vc1_parser: use init_get_bits8()
authorPaul B Mahol <onemda@gmail.com>
Thu, 20 Dec 2018 20:19:56 +0000 (21:19 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 20 Dec 2018 20:19:56 +0000 (21:19 +0100)
libavcodec/vc1_parser.c

index bb54947..493ffde 100644 (file)
@@ -67,7 +67,7 @@ static void vc1_extract_header(AVCodecParserContext *s, AVCodecContext *avctx,
     int ret;
     vpc->v.s.avctx = avctx;
     vpc->v.parse_only = 1;
-    init_get_bits(&gb, buf, buf_size * 8);
+    init_get_bits8(&gb, buf, buf_size);
     switch (vpc->prev_start_code) {
     case VC1_CODE_SEQHDR & 0xFF:
         ff_vc1_decode_sequence_header(avctx, &vpc->v, &gb);