mpegenc: prevent a NULL pointer dereference