graphparser: add a NULL check on the argument passed to strstr
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 30 Mar 2011 19:30:31 +0000 (21:30 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 25 Apr 2011 20:45:44 +0000 (22:45 +0200)
commitf80b381bfd956e4470bdbc1854f88cf3ea0764a9
treefcaa20dd62957789dc3946daa58e7b0f5fb1d449
parentc61bfc113ae8c562e33734acc58299e4b01fe649
graphparser: add a NULL check on the argument passed to strstr

Fix crash in create_filter() which occurrs if a scale filter with no
args is provided.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/graphparser.c