On 2012-05-14 19:50:27 +0200, Kostya Shishkov wrote:
> ---
> libavcodec/indeo3.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
> index e5b2ea7..d526d91 100644
> --- a/libavcodec/indeo3.c
> +++ b/libavcodec/indeo3.c
> @@ -900,6 +900,14 @@ static int decode_frame_headers(Indeo3DecodeContext
> *ctx, AVCodecContext *avctx,
>
> av_dlog(avctx, "Frame dimensions changed!\n");
>
> + if (width < 16 || width > 640 ||
> + height < 16 || height > 480 ||
> + width & 3 || height & 3) {
> + av_log(avctx, AV_LOG_ERROR,
> + "Invalid picture dimensions: %d x %d!\n", width, height);
> + return AVERROR_INVALIDDATA;
> + }
> +
ok, assuming that are the correct limitations of indeo3
> ctx->width = width;
> ctx->height = height;
Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel