mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
Merge commit '5372cda67109848d22146289e401669266217e80'
* commit '5372cda67109848d22146289e401669266217e80': rv10: Validate the dimensions set from the container This check could be replaced by a width==0||height==0 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b4c88a4c4c
@ -449,6 +449,9 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
|
|||||||
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
|
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
|
||||||
return AVERROR_INVALIDDATA;
|
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);
|
ff_MPV_decode_defaults(s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user