diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-17 14:53:42 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-18 23:27:14 +0100 |
commit | ac467d94fa6d9d626f77d4ca8125a5eb1ad5425d (patch) | |
tree | 9a8f9d1122ea5d2ee38e090ecfdd7bff7da6e042 /libavcodec | |
parent | 8b263331c5ebbb10b6ea521e9fd56751ba94254b (diff) | |
download | ffmpeg-streaming-ac467d94fa6d9d626f77d4ca8125a5eb1ad5425d.zip ffmpeg-streaming-ac467d94fa6d9d626f77d4ca8125a5eb1ad5425d.tar.gz |
lcl: return an appropriate error code
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/lclenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |