mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-31 23:59:34 +00:00
libwebpenc_animencoder: print library messages in verbose log levels
Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
626b6b769c
commit
f875ba4873
@ -43,6 +43,7 @@ static av_cold int libwebp_anim_encode_init(AVCodecContext *avctx)
|
|||||||
LibWebPAnimContext *s = avctx->priv_data;
|
LibWebPAnimContext *s = avctx->priv_data;
|
||||||
WebPAnimEncoderOptions enc_options = { 0 };
|
WebPAnimEncoderOptions enc_options = { 0 };
|
||||||
WebPAnimEncoderOptionsInit(&enc_options);
|
WebPAnimEncoderOptionsInit(&enc_options);
|
||||||
|
enc_options.verbose = av_log_get_level() >= AV_LOG_VERBOSE;
|
||||||
// TODO(urvang): Expose some options on command-line perhaps.
|
// TODO(urvang): Expose some options on command-line perhaps.
|
||||||
s->enc = WebPAnimEncoderNew(avctx->width, avctx->height, &enc_options);
|
s->enc = WebPAnimEncoderNew(avctx->width, avctx->height, &enc_options);
|
||||||
if (!s->enc)
|
if (!s->enc)
|
||||||
|
Loading…
Reference in New Issue
Block a user