summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 66847bb..6829930 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -186,7 +186,7 @@ static av_cold int gif_encode_init(AVCodecContext *avctx)
if (avctx->width > 65535 || avctx->height > 65535) {
av_log(avctx, AV_LOG_ERROR, "GIF does not support resolutions above 65535x65535\n");
- return -1;
+ return AVERROR(EINVAL);
}
avctx->coded_frame = &s->picture;
OpenPOWER on IntegriCloud