[FFmpeg-cvslog] avcodec/pngenc: Don't use deflateInit2() with default parameters
Andreas Rheinhardt
git at videolan.org
Sat Mar 19 02:30:49 EET 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Mar 15 15:21:51 2022 +0100| [e9d12766b2d3fdb72bd39fa3042a1d3cded81dde] | committer: Andreas Rheinhardt
avcodec/pngenc: Don't use deflateInit2() with default parameters
Use deflateInit() instead.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9d12766b2d3fdb72bd39fa3042a1d3cded81dde
---
libavcodec/pngenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list