[FFmpeg-cvslog] lavfi: don't try to indent words in trace messages

Stefano Sabatini git at videolan.org
Tue Dec 27 13:01:25 CET 2011


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Dec 25 13:23:02 2011 +0100| [5764301df3fd71c007a11fecd5ebabdd0fc36591] | committer: Stefano Sabatini

lavfi: don't try to indent words in trace messages

The traces end up not indented and ugly anyway, but with the additional
spaces are much more painful to grep/parse.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5764301df3fd71c007a11fecd5ebabdd0fc36591
---

 libavfilter/avfilter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index fa8d0d7..b4c9fa6 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -370,7 +370,7 @@ static void ff_dlog_link(void *ctx, AVFilterLink *link, int end)
 {
     if (link->type == AVMEDIA_TYPE_VIDEO) {
         av_dlog(ctx,
-                "link[%p s:%dx%d fmt:%-16s %-16s->%-16s]%s",
+                "link[%p s:%dx%d fmt:%s %s->%s]%s",
                 link, link->w, link->h,
                 av_pix_fmt_descriptors[link->format].name,
                 link->src ? link->src->filter->name : "",
@@ -381,7 +381,7 @@ static void ff_dlog_link(void *ctx, AVFilterLink *link, int end)
         av_get_channel_layout_string(buf, sizeof(buf), -1, link->channel_layout);
 
         av_dlog(ctx,
-                "link[%p r:%d cl:%s fmt:%-16s %-16s->%-16s]%s",
+                "link[%p r:%d cl:%s fmt:%s %s->%s]%s",
                 link, (int)link->sample_rate, buf,
                 av_get_sample_fmt_name(link->format),
                 link->src ? link->src->filter->name : "",



More information about the ffmpeg-cvslog mailing list