[FFmpeg-cvslog] libwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct

James Almer git at videolan.org
Thu Mar 17 17:38:10 CET 2016


ffmpeg | branch: release/2.7 | James Almer <jamrial at gmail.com> | Thu Mar 17 00:50:08 2016 -0300| [c5e12dc10de83c70ce1ba88628c3691eb920ce53] | committer: James Almer

libwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct

This zeroes the WebPAnimEncoderOptions.verbose field, silencing library info messages
printed to stderr.

Reviewed-by: James Zern <jzern at google.com>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 626b6b769ced6d3e55d2661985ab2a1cb89f481e)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c5e12dc10de83c70ce1ba88628c3691eb920ce53
---

 libavcodec/libwebpenc_animencoder.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c
index e958201..7c1ac66 100644
--- a/libavcodec/libwebpenc_animencoder.c
+++ b/libavcodec/libwebpenc_animencoder.c
@@ -41,7 +41,7 @@ static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
     int ret = ff_libwebp_encode_init_common(avctx);
     if (!ret) {
         LibWebPAnimContext *s = avctx->priv_data;
-        WebPAnimEncoderOptions enc_options;
+        WebPAnimEncoderOptions enc_options = { 0 };
         WebPAnimEncoderOptionsInit(&enc_options);
         // TODO(urvang): Expose some options on command-line perhaps.
         s->enc = WebPAnimEncoderNew(avctx->width, avctx->height, &enc_options);



More information about the ffmpeg-cvslog mailing list