Read color info, pixel crop, and codec delay from mkv.

This commit is contained in:
Damiano Galassi committed 2017-05-12 13:14:15 +02:00
1 parent 3e8353d672
commit bb81a506c1
4 files changed
+87 -19

No files matched your search

+8 -2
View File
@@ -83,12 +83,18 @@
- (UInt32)initialPaddingForTrack:(MP42AudioTrack *)track
{
UInt32 initialPadding = 0;
if (track.format == kMP42AudioCodecType_MPEG4AAC) {
if (track.format == kMP42AudioCodecType_MPEG4AAC ||
track.format == kMP42AudioCodecType_MPEG4AAC_HE ||
track.format == kMP42AudioCodecType_MPEG4AAC_HE_V2) {
initialPadding = 2112;
}
else if (track.format == kMP42AudioCodecType_AC3) {
else if (track.format == kMP42AudioCodecType_AC3 ||
track.format == kMP42AudioCodecType_EnhancedAC3) {
initialPadding = 256;
}
else if (track.format == kMP42AudioCodecType_MPEGLayer3) {
initialPadding = 1105;
}
return initialPadding;
}