From ac467d94fa6d9d626f77d4ca8125a5eb1ad5425d Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 17 Dec 2014 14:53:42 +0100 Subject: [PATCH] lcl: return an appropriate error code --- libavcodec/lclenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c index 878d1e16f8..acf5e73b6b 100644 --- a/libavcodec/lclenc.c +++ b/libavcodec/lclenc.c @@ -164,7 +164,7 @@ static av_cold int encode_init(AVCodecContext *avctx) zret = deflateInit(&c->zstream, c->compression); if (zret != Z_OK) { av_log(avctx, AV_LOG_ERROR, "Deflate init error: %d\n", zret); - return 1; + return AVERROR_UNKNOWN; } return 0;