[FFmpeg-devel] [PATCH] Replace all av_dlog() with av_log(AV_LOG_TRACE).

Michael Niedermayer michael at niedermayer.cc
Mon Aug 17 20:26:49 CEST 2015


On Mon, Aug 17, 2015 at 12:00:21PM -0400, Ronald S. Bultje wrote:
[...]
> diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c
> index 47630ad..a56b163 100644
> --- a/libavfilter/vsrc_life.c
> +++ b/libavfilter/vsrc_life.c
> @@ -334,7 +334,7 @@ static void evolve(AVFilterContext *ctx)
>              if (alive)     *newbuf = ALIVE_CELL; // new cell is alive
>              else if (cell) *newbuf = cell - 1;   // new cell is dead and in the process of mold
>              else           *newbuf = 0;          // new cell is definitely dead
> -            av_dlog(ctx, "i:%d j:%d live_neighbors:%d cell:%d -> cell:%d\n", i, j, n, cell, *newbuf);
> +            av_log(ctx, AV_LOG_TRACE, "i:%d j:%d live_neighbors:%d cell:%d -> cell:%d\n", i, j, n, cell, *newbuf);
>              newbuf++;

this is called per pixel so ff_tlog() might be better to avoid
overhead from the call

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150817/1434562b/attachment.sig>


More information about the ffmpeg-devel mailing list