Skip to content

Commit b0457f3

Browse files
hiroshihoriecloudwebrtc
authored andcommitted
Update RTCVideoEncoderH264.mm (#6)
1 parent 03af6cc commit b0457f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/objc/components/video_codec/RTCVideoEncoderH264.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ - (BOOL)resetCompressionSessionIfNeededWithFrame:(RTC_OBJC_TYPE(RTCVideoFrame) *
572572
OSType framePixelFormat = [self pixelFormatOfFrame:frame];
573573

574574
if (_compressionSession) {
575+
_pixelBufferPool = VTCompressionSessionGetPixelBufferPool(_compressionSession);
575576
// The pool attribute `kCVPixelBufferPixelFormatTypeKey` can contain either an array of pixel
576577
// formats or a single pixel format.
577578
NSDictionary *poolAttributes =

0 commit comments

Comments
 (0)