[FFmpeg-devel] [PATCH 2/2] libwebpenc_animencoder: print library messages in verbose log levels

James Zern jzern at google.com
Thu Mar 17 07:36:34 CET 2016


On Wed, Mar 16, 2016 at 9:03 PM, James Almer <jamrial at gmail.com> wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavcodec/libwebpenc_animencoder.c | 2 ++
>  1 file changed, 2 insertions(+)
>

lgtm. Not really sure if this logging in the lib was really necessary...

> 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;
>

Could be a one line assignment, either way.


More information about the ffmpeg-devel mailing list