diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-31 00:46:47 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-31 00:48:58 +0200 |
commit | 55e509b0944e52de2227452bca668c2d72fa0de1 (patch) | |
tree | 89e4de1cd247f8e4c1453e348776715292755058 /libavfilter/af_join.c | |
parent | f9db470f25a3cb4de9c25efc10487a172938d7ce (diff) |
avfilter/af_join: do not dereference possible null pointer
Diffstat (limited to 'libavfilter/af_join.c')
-rw-r--r-- | libavfilter/af_join.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index 6f01c6f70a..dc075a8b27 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -586,7 +586,8 @@ static int activate(AVFilterContext *ctx) } } - nb_samples = s->input_frames[0]->nb_samples; + if (s->input_frames[0]) + nb_samples = s->input_frames[0]->nb_samples; for (i = 1; i < ctx->nb_inputs && nb_samples > 0; i++) { if (s->input_frames[i]) |