lavf: don't segfault when a NULL filename is passed to avformat_open_input()