]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/twinvqdec.c
qsv: Join the derived session to the parent
[ffmpeg] / libavcodec / twinvqdec.c
index 6355ad4ed2926d72d694c1139367707754c28044..8981d95408961e97c2c0be659438f33bcfee39fe 100644 (file)
@@ -259,7 +259,7 @@ static int twinvq_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
     BitstreamContext bc;
     int i, j, k;
 
-    bitstream_init(&bc, buf, buf_size * 8);
+    bitstream_init8(&bc, buf, buf_size);
     bitstream_skip(&bc, bitstream_read(&bc, 8));
 
     bits->window_type = bitstream_read(&bc, TWINVQ_WINDOW_TYPE_BITS);