Commit 951d39fe authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter: fix segfault with setsar/dar

Reported-by: durandal_1707
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f7b46d86
...@@ -59,7 +59,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, const AVClass *c ...@@ -59,7 +59,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, const AVClass *c
aspect->class = class; aspect->class = class;
av_opt_set_defaults(aspect); av_opt_set_defaults(aspect);
if (sscanf(args, "%d:%d%c", &q.num, &q.den, &c) == 2) { if (args && sscanf(args, "%d:%d%c", &q.num, &q.den, &c) == 2) {
aspect->ratio_str = av_strdup(args); aspect->ratio_str = av_strdup(args);
av_log(ctx, AV_LOG_WARNING, av_log(ctx, AV_LOG_WARNING,
"num:den syntax is deprecated, please use num/den or named options instead\n"); "num:den syntax is deprecated, please use num/den or named options instead\n");
......
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