ffserver segfault & other fatal failure fixes