[FFmpeg-cvslog] libwebpenc_animencoder: add missing braces to struct initialization
James Almer
git at videolan.org
Tue Jul 10 12:06:47 EEST 2018
ffmpeg | branch: release/2.8 | James Almer <jamrial at gmail.com> | Thu Mar 17 21:46:06 2016 -0300| [81997136995e795ee6c9e7643d03247f5dd5fdf9] | committer: Michael Niedermayer
libwebpenc_animencoder: add missing braces to struct initialization
The first member of the WebPAnimEncoderOptions struct is non scalar
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 488e6409df2487a2aedbd5adb5ac3f7e74216588)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=81997136995e795ee6c9e7643d03247f5dd5fdf9
---
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 61ecae8a8a..91bf64ca8b 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 = { 0 };
+ WebPAnimEncoderOptions enc_options = { { 0 } };
WebPAnimEncoderOptionsInit(&enc_options);
enc_options.verbose = av_log_get_level() >= AV_LOG_VERBOSE;
// TODO(urvang): Expose some options on command-line perhaps.
More information about the ffmpeg-cvslog
mailing list