Three children are recovering in hospital after Austrian police stopped a truck near Braunau, on the German border, with 26 people from Syria, Afghanistan and Bangladesh crammed inside.
They said that three severely dehydrated small children were among the passengers, and were taken to a hospital.
"According to doctors, they would not have withstood this ordeal for very much longer," police official David Furtner told the Austria Press Agency. The suspected smuggler, a 29-year-old Romanian man, was arrested.
About 150,000 migrants have been detained already this year in Hungary, more than triple the figure recorded in all of 2014. Many apply for asylum but leave for richer countries in the European Union like Germany before their requests are decided.
Macedonia/Greece Border Crisis
Macedonia/Greece Border Crisis
1/10 Macedonia Border Crisis
Migrants attempt to pass the Greek-Macedonian border guarded by Macedonian police near the town of Idomeni, northern Greece
2/10 Macedonian Border Crisis
A migrant reacts as he carries a child during clashes with Macedonian police at the Greek-Macedonian border
3/10 Macedonia Border Crisis
A Macedonian policeman armed in riot gear clashes with a migrant girl, police have reinforced control at the border with Greece in a bid to stop the influx of migrants, but a few hundred Syrians managed to cross the frontier overnight
4/10 Macedonia Border Crisis
Macedonian special policemen guard the border as more than a thousand immigrants wait at the border line
5/10 Macedonia Border Crisis
Migrant men help a fellow migrant man holding a boy as they are stuck between Macedonian riot police officers and migrants during a clash near the border train station of Idomeni,
6/10 Macedonia Border Crisis
A barbed wire fence lines the border of Macedonia and Greece near the Gevegelija Railway station, Macedonian special policemen are guarding the border as more than a thousand immigrants wait at the border line of Macedonia and Greece
7/10 Macedonia Border Crisis
Macedonian Police stand firm at the Greek-Macedonian border in a bid to stop the influx of migrants
8/10 Macedonia Border Crisis
Government of Macedonia has declared the state of emergency in the region of country's southern and northern border and in accordance with the law to open a possibility for appropriate engagement of the army of Macedonia
9/10 Macedonia Border Crisis
Macedonian police drove back crowds of migrants and refugees trying to enter from Greece on Friday after a night spent stranded in no-man's land by an emergency decree effectively sealing the Macedonian frontier.
10/10 Macedonia Border Crisis
A migrants woman with childrens wait to pass the Greek-Macedonian border, guarded by Macedonian police near the town of Idomeni, northern Greece
Others try to avoid the police and frequently rely on human traffickers to continue their journey toward the West.
The discovery was revealed as four men suspected of being involved in the deaths of 71 migrants found in another truck in Austria were placed under preliminary arrest by a Hungarian court.
The preliminary arrests will be in place until the suspects are indicted or September 29, at the latest, said Ferenc Bicskei, president of the Kecskemet Court.
The court agreed with prosecutors that the severity of the crime and the risk that the suspects would flee justified their arrest. Mr Bicskei said the four suspects appealed the decision, saying they had not committed any crimes.
The three Bulgarian suspects are aged 29, 30 and 50, officials said, while the fourth suspect - an Afghan - is 28 years old.
The refrigerated truck with the dead migrants was found on Thursday in the safety lane of the main Budapest-to-Vienna highway. The suspects were detained later that day in southern Hungary, near the border with Serbia, where Hungary is building a 4-metre high fence.
The case is being heard in Kecskemet, in central Hungary, because the truck set off from that city before picking up the migrants near the border with Serbia, Gabor Schmidt, a spokesman for the Bacs-Kiskun county chief prosecution office, told reporters.
Mr Schmidt said Hungarian authorities are investigating the suspects' involvement in the human trafficking aspects of the case, while their suspected connection to the deaths of the migrants is being investigated by Austrian authorities.
He said the prosecution strongly suspects the four men cooperated in the transportation of the migrants from Hungary to Austria, adding that human smuggling carries a sentence of between two and 16 years in prison.
The four handcuffed men were taken into the court building through a side entrance.
The defence lawyers of the suspects were not present and will be notified of the court decisions, court spokesman Szabolcs Sarkozy said.
It was not clear how long the bodies had been inside the truck, but police believe the migrants may already have been dead by the time the truck crossed into Austria overnight on Wednesday. Austrian officials believe they suffocated.
Autopsies were being conducted, with results expected in several days.