summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-18 00:20:15 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-18 00:24:25 +0200
commit8694e87127a39a475e35f3344550b049bd4da86a (patch)
treeef6d97bfb8c2969d5bb483d8c8211cdb9708e0b5 /libavcodec
parent71411b69a22526832e2c8d92cd1faf60e05528a3 (diff)
downloadffmpeg-streaming-8694e87127a39a475e35f3344550b049bd4da86a.zip
ffmpeg-streaming-8694e87127a39a475e35f3344550b049bd4da86a.tar.gz
lavc/gif: return more meaningful error code.
Diffstat (limited to 'libavcodec')
-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