aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-10 12:44:13 +0200
committerAnton Khirnov <anton@khirnov.net>2013-04-30 11:16:57 +0200
commitc22263d3e813d442df8fa5f5ba8993573fe775d8 (patch)
tree21168e4b517dc943f9bed093c11c53581e3bb1f4
parent8aaab1113c00f2c90f3ce9ebe0c29af19cb155fd (diff)
downloadffmpeg-c22263d3e813d442df8fa5f5ba8993573fe775d8.tar.gz
graphparser: only print filter arguments if they are non-NULL
-rw-r--r--libavfilter/graphparser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index d00da9cb2d..00764b68b6 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -126,7 +126,10 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
ret = avfilter_init_str(*filt_ctx, args);
if (ret < 0) {
av_log(log_ctx, AV_LOG_ERROR,
- "Error initializing filter '%s' with args '%s'\n", filt_name, args);
+ "Error initializing filter '%s'", filt_name);
+ if (args)
+ av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
+ av_log(log_ctx, AV_LOG_ERROR, "\n");
return ret;
}