[FFmpeg-cvslog] lcl: return an appropriate error code
Vittorio Giovara
git at videolan.org
Fri Dec 19 04:51:36 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Dec 17 14:53:42 2014 +0100| [ac467d94fa6d9d626f77d4ca8125a5eb1ad5425d] | committer: Vittorio Giovara
lcl: return an appropriate error code
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac467d94fa6d9d626f77d4ca8125a5eb1ad5425d
---
libavcodec/lclenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c
index 878d1e1..acf5e73 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;
More information about the ffmpeg-cvslog
mailing list