fix detection of libavcodec version
fix segfault when using ^C on MP4Client

txt can be null.