dashenc: don't write header data before the first packet arrives