[FFmpeg-devel] [PATCH v3 2/3] lavc/libdavs2.c: change decoder info level

Li, Zhong zhong.li at intel.com
Sat Jul 13 16:34:30 EEST 2019


> From: ffmpeg-devel [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf
> Of hwrenx
> Sent: Friday, July 12, 2019 11:22 PM
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH v3 2/3] lavc/libdavs2.c: change decoder info
> level
> 
> Signed-off-by: hwrenx <hwrenx at 126.com>
> ---
>  libavcodec/libdavs2.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index
> 218f3ec..1b274a3 100644
> --- a/libavcodec/libdavs2.c
> +++ b/libavcodec/libdavs2.c
> @@ -44,7 +44,9 @@ static av_cold int davs2_init(AVCodecContext *avctx)
> 
>      /* init the decoder */
>      cad->param.threads      = avctx->thread_count;
> -    cad->param.info_level   = 0;
> +    cad->param.info_level   = av_log_get_level() > AV_LOG_INFO
> +                                                 ?
> DAVS2_LOG_DEBUG
> +                                                 :
> DAVS2_LOG_WARNING;

How about exactly map AV_LOG_XXX to DAVS2_LOG_XXX?


More information about the ffmpeg-devel mailing list