diff --git a/SGPlayer/Classes/Core/SGDescription/SGVideoDescriptor.m b/SGPlayer/Classes/Core/SGDescription/SGVideoDescriptor.m index 9a1793df..5093ecc9 100644 --- a/SGPlayer/Classes/Core/SGDescription/SGVideoDescriptor.m +++ b/SGPlayer/Classes/Core/SGDescription/SGVideoDescriptor.m @@ -47,6 +47,18 @@ - (instancetype)initWithFrame:(AVFrame *)frame return self; } +- (void)setFormat:(int)format +{ + self->_format = format; + self->_cv_format = SGPixelFormatFF2AV(format); +} + +- (void)setCv_format:(OSType)cv_format +{ + self->_format = SGPixelFormatAV2FF(cv_format); + self->_cv_format = cv_format; +} + - (BOOL)isEqualToDescriptor:(SGVideoDescriptor *)descriptor { if (!descriptor) { diff --git a/SGPlayer/Classes/Core/SGProcessor/SGSWScale.m b/SGPlayer/Classes/Core/SGProcessor/SGSWScale.m index f87eb081..c86cdc97 100644 --- a/SGPlayer/Classes/Core/SGProcessor/SGSWScale.m +++ b/SGPlayer/Classes/Core/SGProcessor/SGSWScale.m @@ -59,7 +59,7 @@ - (int)convert:(const uint8_t *const [])inputData inputLinesize:(const int [])in 0, self->_inputDescriptor.height, outputData, - outputLinesize);; + outputLinesize); } @end diff --git a/SGPlayer/Classes/SGPlayerHeader.h b/SGPlayer/Classes/SGPlayerHeader.h index e43f4c0c..f0a3beb7 100644 --- a/SGPlayer/Classes/SGPlayerHeader.h +++ b/SGPlayer/Classes/SGPlayerHeader.h @@ -102,6 +102,9 @@ FOUNDATION_EXPORT const unsigned char SGPlayerVersionString[]; #import "SGURLSegment.h" #import "SGPaddingSegment.h" +#import "SGDemuxable.h" +#import "SGURLDemuxer.h" + #import "SGPlayerItem.h" #import "SGFrameOutput.h" #import "SGPacketOutput.h"