diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-04-18 00:20:15 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-04-18 00:24:25 +0200 |
commit | 8694e87127a39a475e35f3344550b049bd4da86a (patch) | |
tree | ef6d97bfb8c2969d5bb483d8c8211cdb9708e0b5 /libavcodec/gif.c | |
parent | 71411b69a22526832e2c8d92cd1faf60e05528a3 (diff) | |
download | ffmpeg-8694e87127a39a475e35f3344550b049bd4da86a.tar.gz |
lavc/gif: return more meaningful error code.
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r-- | libavcodec/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 66847bb783..6829930d8d 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; |