Commit 1a41415b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'bd5ad8b2'

* commit 'bd5ad8b2':
  hq_hqa: Fix reading hqa quantization matrix index
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 2f8f5027 bd5ad8b2
......@@ -255,7 +255,8 @@ static int hqa_decode_frame(HQContext *ctx, AVFrame *pic, size_t data_size)
av_log(ctx->avctx, AV_LOG_VERBOSE, "HQA Profile\n");
quant = bytestream2_get_be32(&ctx->gbc);
quant = bytestream2_get_byte(&ctx->gbc);
bytestream2_skip(&ctx->gbc, 3);
if (quant >= NUM_HQ_QUANTS) {
av_log(ctx->avctx, AV_LOG_ERROR,
"Invalid quantization matrix %d.\n", quant);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment