From e323a76b30dd2b04ebb55107c6f999fa608c4006 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 13 Sep 2016 12:52:01 +0200 Subject: [PATCH] Add a DRC setting to the preferences. --- MP42/MP42File.m | 2 +- MP42/MP42Track.m | 28 +++++++++++++++++----------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/MP42/MP42File.m b/MP42/MP42File.m index daeabc8..f45388e 100644 --- a/MP42/MP42File.m +++ b/MP42/MP42File.m @@ -427,7 +427,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) { } } - if (trackNeedConversion(track.format)) { + if (trackNeedConversion(track.format) && ![track isMemberOfClass:[MP42ChapterTrack class]]) { NSAssert(track.conversionSettings, @"Missing conversion settings"); } diff --git a/MP42/MP42Track.m b/MP42/MP42Track.m index 9be7e05..3326ce7 100644 --- a/MP42/MP42Track.m +++ b/MP42/MP42Track.m @@ -16,25 +16,31 @@ #import "MP42Track+Private.h" -@implementation MP42Track +@interface MP42Track () { - MP42TrackId _sourceId; - uint64_t _size; - uint32_t _bitrate; NSString *_name; - NSSet *_mediaCharacteristicTags; - uint64_t _alternate_group; int64_t _startOffset; - - uint32_t _timescale; - MP42Duration _duration; - - NSMutableDictionary *_updatedProperty; } +@property(nonatomic, readwrite) MP42TrackId trackId; +@property(nonatomic, readwrite) MP42TrackId sourceId; + +@property(nonatomic, readwrite, copy) NSURL *sourceURL; + +@property(nonatomic, readwrite) FourCharCode format; +@property(nonatomic, readwrite) MP42Duration duration; + +@property(nonatomic, readwrite) BOOL muxed; + +@property(nonatomic, readonly) NSMutableDictionary *updatedProperty; + +@end + +@implementation MP42Track + - (instancetype)init { if ((self = [super init])) {