Read color info, pixel crop, and codec delay from mkv.
This commit is contained in:
1 parent
3e8353d672
commit
bb81a506c1
4 files changed
+87
-19
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user