[FFmpeg-devel] [PATCH 2/2] libwebpenc_animencoder: print library messages in verbose log levels
James Almer
jamrial at gmail.com
Thu Mar 17 05:03:50 CET 2016
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/libwebpenc_animencoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c
index 35c456a..9068922 100644
--- a/libavcodec/libwebpenc_animencoder.c
+++ b/libavcodec/libwebpenc_animencoder.c
@@ -43,6 +43,8 @@ static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
LibWebPAnimContext *s = avctx->priv_data;
WebPAnimEncoderOptions enc_options = { 0 };
WebPAnimEncoderOptionsInit(&enc_options);
+ if (av_log_get_level() >= AV_LOG_VERBOSE)
+ enc_options.verbose = 1;
// TODO(urvang): Expose some options on command-line perhaps.
s->enc = WebPAnimEncoderNew(avctx->width, avctx->height, &enc_options);
if (!s->enc)
--
2.7.3
More information about the ffmpeg-devel
mailing list