avcodec/bitstream_filters: check the input argument of av_bsf_get_by_name() for NULL
authorJames Almer <jamrial@gmail.com>
Sat, 28 Jul 2018 03:51:57 +0000 (00:51 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 29 Jul 2018 01:46:00 +0000 (22:46 -0300)
commitecafc4af95b42ca0fb2b0e658b3df8d5b0ed5448
tree41d313db118da507f5936c49275bb03994885fbc
parenta911f234e26e488198dff8aec8a5ff3c2e052cc4
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: James Almer <jamrial@gmail.com>
(cherry picked from commit 3258cc6507a2012d54889ce5f8efbde7e81d927d)
libavcodec/bitstream_filters.c