mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
avfilter/af_join: do not dereference possible null pointer
This commit is contained in:
parent
f9db470f25
commit
55e509b094
@ -586,6 +586,7 @@ static int activate(AVFilterContext *ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s->input_frames[0])
|
||||||
nb_samples = s->input_frames[0]->nb_samples;
|
nb_samples = s->input_frames[0]->nb_samples;
|
||||||
|
|
||||||
for (i = 1; i < ctx->nb_inputs && nb_samples > 0; i++) {
|
for (i = 1; i < ctx->nb_inputs && nb_samples > 0; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user