1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

hq_hqa: Fix reading hqa quantization matrix index

Value is stored as a byte.
This commit is contained in:
Vittorio Giovara
2015-04-20 12:06:01 +01:00
parent 1746dc382d
commit bd5ad8b23d

View File

@@ -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"); 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) { if (quant >= NUM_HQ_QUANTS) {
av_log(ctx->avctx, AV_LOG_ERROR, av_log(ctx->avctx, AV_LOG_ERROR,
"Invalid quantization matrix %d.\n", quant); "Invalid quantization matrix %d.\n", quant);