diff --git a/libavformat/takdec.c b/libavformat/takdec.c index 520956c7a0..2ed8a1e3b7 100644 --- a/libavformat/takdec.c +++ b/libavformat/takdec.c @@ -99,7 +99,7 @@ static int tak_read_header(AVFormatContext *s) } } - init_get_bits(&gb, buffer, (size - 3) * 8); + init_get_bits8(&gb, buffer, size - 3); break; case TAK_METADATA_MD5: { uint8_t md5[16];