fix mux avformat_write_header error