[FFmpeg-devel] [PATCH] lavfi: don't try to indent words in trace messages
Stefano Sabatini
stefasab at gmail.com
Mon Dec 26 00:06:51 CET 2011
The traces end up not indented and ugly anyway, but with the additional
spaces are much more painful to grep/parse.
---
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 : "",
--
1.7.5.4
More information about the ffmpeg-devel
mailing list