diff options
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r-- | libavcodec/xan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c index 33149e5ff7..5bb4f161e4 100644 --- a/libavcodec/xan.c +++ b/libavcodec/xan.c @@ -129,7 +129,7 @@ static int xan_huffman_decode(unsigned char *dest, int dest_len, if (ptr_len < 0) return AVERROR_INVALIDDATA; - bitstream_init(&bc, ptr, ptr_len * 8); + bitstream_init8(&bc, ptr, ptr_len); while (val != 0x16) { unsigned idx = val - 0x17 + bitstream_read_bit(&bc) * byte; |