Commit 59352cc2 authored by Piotr Bandurski's avatar Piotr Bandurski Committed by Michael Niedermayer

sgienc: add a limit for maximum supported resolution

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8a0efa9c
......@@ -36,6 +36,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
{
SgiContext *s = avctx->priv_data;
if (avctx->width > 65535 || avctx->height > 65535) {
av_log(avctx, AV_LOG_ERROR, "SGI does not support resolutions above 65535x65535\n");
return -1;
}
avcodec_get_frame_defaults(&s->picture);
avctx->coded_frame = &s->picture;
......
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