Commit c86490c4 authored by Nikolas Bowe's avatar Nikolas Bowe Committed by Michael Niedermayer

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: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e3d946b3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment