diff options
author | James Almer <jamrial@gmail.com> | 2016-03-17 00:50:08 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-03-17 11:13:59 -0300 |
commit | 626b6b769ced6d3e55d2661985ab2a1cb89f481e (patch) | |
tree | 1bd6b7e8431029041e1a8501ebb94c359713b1a6 /libavcodec | |
parent | 6b7ce0ea0d6271cd788888cec9baa48fc088bde5 (diff) | |
download | ffmpeg-626b6b769ced6d3e55d2661985ab2a1cb89f481e.tar.gz |
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@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libwebpenc_animencoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c index d7437a9a57..35c456adef 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); |