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:33 +0000 (22:46 -0300)
commita9c1ef2626363fbc0987cc34e615e07052b9ba5a
tree8e03f7e7bc23a7e220bff345d59989e0cf4a4a12
parentac1ddc6361f3798bb168179df8f26ffb37cc3fdc
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