File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sdk/objc/components/video_codec Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -387,8 +387,8 @@ - (NSInteger)startEncodeWithSettings:(RTC_OBJC_TYPE(RTCVideoEncoderSettings) *)s
387
387
- (NSInteger )encode : (RTC_OBJC_TYPE(RTCVideoFrame) *)frame
388
388
codecSpecificInfo : (nullable id <RTC_OBJC_TYPE(RTCCodecSpecificInfo)>)codecSpecificInfo
389
389
frameTypes : (NSArray <NSNumber *> *)frameTypes {
390
- RTC_DCHECK_EQ (frame.width , _width);
391
- RTC_DCHECK_EQ (frame.height , _height);
390
+ // RTC_DCHECK_EQ(frame.width, _width);
391
+ // RTC_DCHECK_EQ(frame.height, _height);
392
392
if (!_callback || !_compressionSession) {
393
393
return WEBRTC_VIDEO_CODEC_UNINITIALIZED;
394
394
}
@@ -571,6 +571,7 @@ - (BOOL)resetCompressionSessionIfNeededWithFrame:(RTC_OBJC_TYPE(RTCVideoFrame) *
571
571
OSType framePixelFormat = [self pixelFormatOfFrame: frame];
572
572
573
573
if (_compressionSession) {
574
+ _pixelBufferPool = VTCompressionSessionGetPixelBufferPool (_compressionSession);
574
575
// The pool attribute `kCVPixelBufferPixelFormatTypeKey` can contain either an array of pixel
575
576
// formats or a single pixel format.
576
577
NSDictionary *poolAttributes =
You can’t perform that action at this time.
0 commit comments