mkmux: found another stupid bug in mk_mux_write_pkt