lavc/gif: return more meaningful error code.

This commit is contained in:
Clément Bœsch 2013-04-18 00:20:15 +02:00
parent 71411b69a2
commit 8694e87127
1 changed files with 1 additions and 1 deletions

View File

@ -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;