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:44:14 +0000 (22:44 -0300)
commitbc2301429e9c779237e43acf913331af018211f2
tree4660b85e82da36b27acfc5a9efe16ce4df7a5204
parent8df2c7dde6af3e748447ac313947388e6887178a
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