diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-15 15:21:51 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-19 00:18:36 +0100 |
commit | e9d12766b2d3fdb72bd39fa3042a1d3cded81dde (patch) | |
tree | d3e8801f0c8babf34bb654c9f076afb90f58c1e2 | |
parent | 74c930e1b8f7dfc308784e1c3410ef825bec56cf (diff) | |
download | ffmpeg-e9d12766b2d3fdb72bd39fa3042a1d3cded81dde.tar.gz |
avcodec/pngenc: Don't use deflateInit2() with default parameters
Use deflateInit() instead.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/pngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 7d23271563..6f10c1f0a1 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -1071,7 +1071,7 @@ static av_cold int png_enc_init(AVCodecContext *avctx) compression_level = avctx->compression_level == FF_COMPRESSION_DEFAULT ? Z_DEFAULT_COMPRESSION : av_clip(avctx->compression_level, 0, 9); - if (deflateInit2(&s->zstream, compression_level, Z_DEFLATED, 15, 8, Z_DEFAULT_STRATEGY) != Z_OK) + if (deflateInit(&s->zstream, compression_level) != Z_OK) return -1; return 0; |