summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-10-31 15:45:28 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-10-31 15:46:46 +0100
commit1b216421494f4a34be29804ba088b983a2dc98e1 (patch)
treee0620e3b1fd1327c1c3f68a7cc17388863cfcc23 /libavfilter
parent09ea482d5dd1920ea8653eb7369e2d1434c40905 (diff)
lavfi/scale: avoid to print a NULL value in log message
Fix possible crash occurring when libc does not support NULL printing.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_scale.c4
1 files changed, 2 insertions, 2 deletions
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) {