Bug 1046549 - Ignore mdat unless we've already found a media track. r=kentuckyfriedtakahe

This commit is contained in:
Jean-Yves Avenard 2014-07-31 18:54:12 +12:00
parent 953073e82b
commit dd0783ff84

View File

@ -485,7 +485,7 @@ status_t MPEG4Extractor::readMetaData() {
break;
}
uint32_t chunk_type = ntohl(hdr[1]);
if (chunk_type == FOURCC('m', 'd', 'a', 't')) {
if (chunk_type == FOURCC('m', 'd', 'a', 't') && mFirstTrack) {
break;
}
if (chunk_type == FOURCC('m', 'o', 'o', 'f')) {