summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-03-17 01:01:02 -0300
committerJames Almer <jamrial@gmail.com>2016-03-17 12:57:51 -0300
commitd2161b8a6daf0d519eb9ff9fd85d49bc95335441 (patch)
treeefa5108344901120b0421484a59805b4fcbfc940
parentc5e12dc10de83c70ce1ba88628c3691eb920ce53 (diff)
downloadffmpeg-d2161b8a6daf0d519eb9ff9fd85d49bc95335441.tar.gz
libwebpenc_animencoder: print library messages in verbose log levels
Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit f875ba48739f59691661393eed1f7cc2371c93f1)
-rw-r--r--libavcodec/libwebpenc_animencoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c
index 7c1ac66b25..7a82ee62bf 100644
--- a/libavcodec/libwebpenc_animencoder.c
+++ b/libavcodec/libwebpenc_animencoder.c
@@ -43,6 +43,7 @@ static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
LibWebPAnimContext *s = avctx->priv_data;
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.
s->enc = WebPAnimEncoderNew(avctx->width, avctx->height, &enc_options);
if (!s->enc)