Skip to content
Snippets Groups Projects
Commit 3258cc65 authored by James Almer's avatar James Almer
Browse files

avcodec/bitstream_filters: check the input argument of av_bsf_get_by_name() for NULL


Fixes crashes like "ffmpeg -h bsf" caused by passing NULL to strcmp()

Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
parent bed125b7
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ const AVBitStreamFilter *av_bsf_get_by_name(const char *name)
const AVBitStreamFilter *f = NULL;
void *i = 0;
if (!name)
return NULL;
while ((f = av_bsf_iterate(&i))) {
if (!strcmp(f->name, name))
return f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment