Commit 8694e871 authored by Clément Bœsch's avatar Clément Bœsch

lavc/gif: return more meaningful error code.

parent 71411b69
...@@ -186,7 +186,7 @@ static av_cold int gif_encode_init(AVCodecContext *avctx) ...@@ -186,7 +186,7 @@ static av_cold int gif_encode_init(AVCodecContext *avctx)
if (avctx->width > 65535 || avctx->height > 65535) { if (avctx->width > 65535 || avctx->height > 65535) {
av_log(avctx, AV_LOG_ERROR, "GIF does not support resolutions above 65535x65535\n"); av_log(avctx, AV_LOG_ERROR, "GIF does not support resolutions above 65535x65535\n");
return -1; return AVERROR(EINVAL);
} }
avctx->coded_frame = &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