Browse Source

lcl: return an appropriate error code

tags/n2.6
Vittorio Giovara 10 years ago
parent
commit
ac467d94fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/lclenc.c

+ 1
- 1
libavcodec/lclenc.c View File

@@ -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;


Loading…
Cancel
Save