]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/interplayvideo.c
qsv: Join the derived session to the parent
[ffmpeg] / libavcodec / interplayvideo.c
index fab9f2724c99fec49408da4e32dbc1372ee8e2bb..f5593d347a2326fc30a9d1a04b7ee37a30f00b28 100644 (file)
@@ -898,7 +898,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame)
     s->upper_motion_limit_offset = (s->avctx->height - 8) * frame->linesize[0]
                                   + (s->avctx->width - 8) * (1 + s->is_16bpp);
 
-    bitstream_init(&bc, s->decoding_map, s->decoding_map_size * 8);
+    bitstream_init8(&bc, s->decoding_map, s->decoding_map_size);
     for (y = 0; y < s->avctx->height; y += 8) {
         for (x = 0; x < s->avctx->width; x += 8) {
             opcode = bitstream_read(&bc, 4);