diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-05-02 09:09:52 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-05-05 16:27:24 +0200 |
commit | 3735b5c616770429572f86aabdaec39c6ebb8818 (patch) | |
tree | a80672dc7be7a7319ccc6933c7dc9f8fdf1e699a /libavfilter/vf_scale.c | |
parent | 60f1cc4a1ffcbf24acbb543988ceeaec76b70818 (diff) | |
download | ffmpeg-3735b5c616770429572f86aabdaec39c6ebb8818.tar.gz |
Revert "lavfi: always check av_expr_parse_and_eval() return value"
This reverts commit 63be97ec403023fb664798432acedaf6e6922527.
All those calls were unchecked on purpose, as explained in the comments
in the code.
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r-- | libavfilter/vf_scale.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 2b9e7e839b..73ea9d23e0 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -177,10 +177,9 @@ static int config_props(AVFilterLink *outlink) var_values[VAR_VSUB] = 1 << desc->log2_chroma_h; /* evaluate width and height */ - if ((ret = av_expr_parse_and_eval(&res, (expr = scale->w_expr), - var_names, var_values, - NULL, NULL, NULL, NULL, NULL, 0, ctx)) < 0) - goto fail; + av_expr_parse_and_eval(&res, (expr = scale->w_expr), + var_names, var_values, + NULL, NULL, NULL, NULL, NULL, 0, ctx); scale->w = var_values[VAR_OUT_W] = var_values[VAR_OW] = res; if ((ret = av_expr_parse_and_eval(&res, (expr = scale->h_expr), var_names, var_values, |