You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-05-16 08:38:24 +02:00
lavc/gif: return more meaningful error code.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user