Commit 445ec2df authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ac467d94'

* commit 'ac467d94':
  lcl: return an appropriate error code
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6781ec67 ac467d94
...@@ -165,7 +165,7 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -165,7 +165,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
zret = deflateInit(&c->zstream, c->compression); zret = deflateInit(&c->zstream, c->compression);
if (zret != Z_OK) { if (zret != Z_OK) {
av_log(avctx, AV_LOG_ERROR, "Deflate init error: %d\n", zret); av_log(avctx, AV_LOG_ERROR, "Deflate init error: %d\n", zret);
return 1; return AVERROR_UNKNOWN;
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment