From 1b216421494f4a34be29804ba088b983a2dc98e1 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 31 Oct 2012 15:45:28 +0100 Subject: lavfi/scale: avoid to print a NULL value in log message Fix possible crash occurring when libc does not support NULL printing. --- libavfilter/vf_scale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter') diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 82a777c5f8..b259799951 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -153,8 +153,8 @@ static av_cold int init(AVFilterContext *ctx, const char *args) if (!scale->h_expr) av_opt_set(scale, "h", "ih", 0); - av_log(ctx, AV_LOG_VERBOSE, "w:%s h:%s flags:%s interl:%d\n", - scale->w_expr, scale->h_expr, scale->flags_str, scale->interlaced); + av_log(ctx, AV_LOG_VERBOSE, "w:%s h:%s flags:'%s' interl:%d\n", + scale->w_expr, scale->h_expr, (char *)av_x_if_null(scale->flags_str, ""), scale->interlaced); scale->flags = SWS_BILINEAR; if (scale->flags_str) { -- cgit v1.2.3