[FFmpeg-cvslog] lavc/gif: return more meaningful error code.
Clément Bœsch
git at videolan.org
Thu Apr 18 00:26:57 CEST 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 18 00:20:15 2013 +0200| [8694e87127a39a475e35f3344550b049bd4da86a] | committer: Clément Bœsch
lavc/gif: return more meaningful error code.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8694e87127a39a475e35f3344550b049bd4da86a
---
libavcodec/gif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list