1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Fix possible crash occurring when libc does not support NULL printing.
This commit is contained in:
Stefano Sabatini 2012-10-31 15:45:28 +01:00
parent 09ea482d5d
commit 1b21642149

View File

@ -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) {