Commit 1b216421 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/scale: avoid to print a NULL value in log message

Fix possible crash occurring when libc does not support NULL printing.
parent 09ea482d
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment