From 81b4d88092b3ba8ef624fcf2c717940598c7e0ee Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 2 Sep 2015 07:59:54 +0200 Subject: [PATCH] Made some headers private --- MP42/MP42AACImporter.mm | 1 + MP42/MP42AC3Importer.m | 1 + MP42/MP42CCImporter.m | 9 ++++++--- MP42/MP42FileImporter.h | 3 +-- MP42Foundation.xcodeproj/project.pbxproj | 4 ---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MP42/MP42AACImporter.mm b/MP42/MP42AACImporter.mm index 6ec1970..0a8a63b 100644 --- a/MP42/MP42AACImporter.mm +++ b/MP42/MP42AACImporter.mm @@ -10,6 +10,7 @@ #import "MP42Languages.h" #import "MP42File.h" #import "MP42PrivateUtilities.h" +#import "MP42Sample.h" @implementation MP42AACImporter diff --git a/MP42/MP42AC3Importer.m b/MP42/MP42AC3Importer.m index f4a446b..c1f4fd7 100644 --- a/MP42/MP42AC3Importer.m +++ b/MP42/MP42AC3Importer.m @@ -11,6 +11,7 @@ #import "MP42File.h" #import "MP42PrivateUtilities.h" #import "MP42Fifo.h" +#import "MP42Sample.h" #include diff --git a/MP42/MP42CCImporter.m b/MP42/MP42CCImporter.m index c585dea..3213ab0 100644 --- a/MP42/MP42CCImporter.m +++ b/MP42/MP42CCImporter.m @@ -10,6 +10,7 @@ #import "MP42SubUtilities.h" #import "MP42Languages.h" #import "MP42File.h" +#import "MP42Sample.h" #import "RegexKitLite.h" @@ -45,7 +46,7 @@ return NSMakeSize([(MP42SubtitleTrack*)track trackWidth], [(MP42SubtitleTrack*) track trackHeight]); } -- (NSData*)magicCookieForTrack:(MP42Track *)track +- (NSData *)magicCookieForTrack:(MP42Track *)track { return nil; } @@ -61,14 +62,16 @@ static unsigned ParseTimeCode(const char *time, unsigned secondScale, BOOL hasSi time++; } - if (sscanf(time,"%u:%u:%u%[,.:;]%u",&hour,&minute,&second,&separator,&frame) < 5) + if (sscanf(time,"%u:%u:%u%[,.:;]%u",&hour,&minute,&second,&separator,&frame) < 5) { return 0; + } timeval = (hour * 60 * 60 + minute * 60 + second) * 30 + frame; //timeval = secondScale * timeval + frame; - if (separator == ';') + if (separator == ';') { *dropFrame = 1; + } return timeval * sign; } diff --git a/MP42/MP42FileImporter.h b/MP42/MP42FileImporter.h index 4e57ca6..8a44b47 100644 --- a/MP42/MP42FileImporter.h +++ b/MP42/MP42FileImporter.h @@ -10,11 +10,10 @@ #import #import "MP42MediaFormat.h" -#import "MP42Sample.h" NS_ASSUME_NONNULL_BEGIN -@class MP42Sample; +@class MP42SampleBuffer; @class MP42Metadata; @class MP42Track; diff --git a/MP42Foundation.xcodeproj/project.pbxproj b/MP42Foundation.xcodeproj/project.pbxproj index c5306aa..db9198f 100644 --- a/MP42Foundation.xcodeproj/project.pbxproj +++ b/MP42Foundation.xcodeproj/project.pbxproj @@ -114,7 +114,6 @@ A9B9C2751823923200416A4E /* MP42ChapterTrack.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C22A1823923100416A4E /* MP42ChapterTrack.m */; }; A9B9C2761823923200416A4E /* MP42ClosedCaptionTrack.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C22B1823923100416A4E /* MP42ClosedCaptionTrack.h */; settings = {ATTRIBUTES = (Public, ); }; }; A9B9C2771823923200416A4E /* MP42ClosedCaptionTrack.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C22C1823923100416A4E /* MP42ClosedCaptionTrack.m */; }; - A9B9C2781823923200416A4E /* MP42ConverterProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C22D1823923100416A4E /* MP42ConverterProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; A9B9C2791823923200416A4E /* MP42Fifo.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C22E1823923100416A4E /* MP42Fifo.h */; }; A9B9C27A1823923200416A4E /* MP42Fifo.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C22F1823923100416A4E /* MP42Fifo.m */; }; A9B9C27B1823923200416A4E /* MP42File.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2301823923100416A4E /* MP42File.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -141,7 +140,6 @@ A9B9C2901823923200416A4E /* MP42OCRWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2451823923100416A4E /* MP42OCRWrapper.mm */; }; A9B9C2911823923200416A4E /* MP42QTImporter.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2461823923100416A4E /* MP42QTImporter.h */; }; A9B9C2921823923200416A4E /* MP42QTImporter.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2471823923100416A4E /* MP42QTImporter.m */; }; - A9B9C2931823923200416A4E /* MP42Sample.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2481823923100416A4E /* MP42Sample.h */; settings = {ATTRIBUTES = (Public, ); }; }; A9B9C2941823923200416A4E /* MP42Sample.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2491823923100416A4E /* MP42Sample.m */; }; A9B9C2951823923200416A4E /* MP42SrtImporter.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C24A1823923100416A4E /* MP42SrtImporter.h */; }; A9B9C2961823923200416A4E /* MP42SrtImporter.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C24B1823923100416A4E /* MP42SrtImporter.m */; }; @@ -743,8 +741,6 @@ A9B9C2761823923200416A4E /* MP42ClosedCaptionTrack.h in Headers */, A9B9C2871823923200416A4E /* MP42Metadata.h in Headers */, A9B9C2851823923200416A4E /* MP42MediaFormat.h in Headers */, - A9B9C2781823923200416A4E /* MP42ConverterProtocol.h in Headers */, - A9B9C2931823923200416A4E /* MP42Sample.h in Headers */, A9A0C9B11981593900A72763 /* MP42ComponentLoader.h in Headers */, A989F10F1823B3B40070AD8C /* MP42TextSample.h in Headers */, A9B9C2831823923200416A4E /* MP42Image.h in Headers */,