Return a more common sample rate is nothing is set in the matroska file.

This commit is contained in:
Damiano Galassi committed 2016-09-11 08:30:38 +02:00
1 parent e8e0db5da1
commit 1125e84048
2 files changed
+4 -2

No files matched your search

+4
View File
@@ -499,6 +499,10 @@ static NSString * TrackNameToString(TrackInfo *track)
if (sampleRate < 24000)
return 48000;
}
// Sample rate is not set, so just guess one.
if (sampleRate == 0) {
return 48000;
}
return mkv_TruncFloat(trackInfo->AV.Audio.SamplingFreq);
}