Merge commit 'bd5ad8b23d'
* commit 'bd5ad8b23d':
hq_hqa: Fix reading hqa quantization matrix index
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1a41415b2a
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue