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:45:02 +0000 (22:45 -0300)
commit660e4c0c961c41c2ae5fc2f40c25bff30ec64133
tree07758358245e56e009c9600f8930c967c8be3dd0
parent18c9d5d3e80dc0b47e0a260b51f5230bdd499e8b
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