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

Merge commit 'f5080335'

* commit 'f5080335':
  asvdec: Verify the amount of extradata

See: 605f2b6bMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 35a8387b f5080335
......@@ -271,6 +271,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
const int scale = avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
int i;
if (avctx->extradata_size < 1) {
av_log(avctx, AV_LOG_ERROR, "No extradata provided\n");
return AVERROR_INVALIDDATA;
}
ff_asv_common_init(avctx);
init_vlcs(a);
ff_init_scantable(a->dsp.idct_permutation, &a->scantable, ff_asv_scantab);
......
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