mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avfilter/af_join: Fix crash in join filter
Previously if ff_outlink_frame_wanted() returned 0 it could dereference a null pointer when trying to read nb_samples. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
e3d946b3f4
commit
c86490c49a
@ -485,6 +485,9 @@ static int activate(AVFilterContext *ctx)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (!s->input_frames[0]) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
nb_samples = s->input_frames[0]->nb_samples;
|
||||
|
Loading…
Reference in New Issue
Block a user