diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-11-21 23:13:16 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-11-21 23:14:38 +0100 |
commit | 98786aa2f05da5e785d9344a04767dfbf99c10f0 (patch) | |
tree | b32574682bc88f1535264247b679cfe0b625b53f | |
parent | 616da595426821fee09878257da4c6e2b56c20c5 (diff) | |
download | ffmpeg-98786aa2f05da5e785d9344a04767dfbf99c10f0.tar.gz |
lavfi/aevalsrc: initialize pointer to expression to NULL
Fix crash in case of expression parsing failure.
-rw-r--r-- | libavfilter/asrc_aevalsrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c index 4c1bbdf1f8..41ad632145 100644 --- a/libavfilter/asrc_aevalsrc.c +++ b/libavfilter/asrc_aevalsrc.c @@ -101,6 +101,7 @@ static av_cold int init(AVFilterContext *ctx) ret = AVERROR(ENOMEM); goto end; } + eval->expr[eval->nb_channels-1] = NULL; ret = av_expr_parse(&eval->expr[eval->nb_channels - 1], expr, var_names, NULL, NULL, NULL, NULL, 0, ctx); if (ret < 0) |