You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
lcl: return an appropriate error code
This commit is contained in:
@ -164,7 +164,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;
|
||||||
|
Reference in New Issue
Block a user