Commit b4c88a4c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5372cda6'

* commit '5372cda6':
  rv10: Validate the dimensions set from the container

This check could be replaced by a width==0||height==0
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 374a2f45 5372cda6
......@@ -449,6 +449,9 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
return AVERROR_INVALIDDATA;
}
if ((ret = av_image_check_size(avctx->coded_width,
avctx->coded_height, 0, avctx)) < 0)
return ret;
ff_MPV_decode_defaults(s);
......
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