Commit 8c0bb195 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '6255ccf7'

* commit '6255ccf7':
  indeo4: Check the quantization matrix index

Conflicts:
	libavcodec/indeo4.c

See: 8a20774aMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 54623619 6255ccf7
...@@ -371,8 +371,9 @@ static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band, ...@@ -371,8 +371,9 @@ static int decode_band_hdr(IVI45DecContext *ctx, IVIBandDesc *band,
av_log(avctx, AV_LOG_ERROR, "Custom quant matrix encountered!\n"); av_log(avctx, AV_LOG_ERROR, "Custom quant matrix encountered!\n");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
if (quant_mat > 21) { if (quant_mat >= FF_ARRAY_ELEMS(quant_index_to_tab)) {
av_log(avctx, AV_LOG_ERROR, "Invalid quant matrix encountered!\n"); avpriv_request_sample(avctx, "Quantization matrix %d",
quant_mat);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
band->quant_mat = quant_mat; band->quant_mat = quant_mat;
......
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