Changeset 283975 in webkit
- Timestamp:
- Oct 12, 2021, 2:45:17 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r283971 r283975 1 2021-10-12 Youenn Fablet <youenn@apple.com> 2 3 Error the encoder in case we cannot create a RemoteVideoSample 4 https://bugs.webkit.org/show_bug.cgi?id=231505 5 <rdar://83975229> 6 7 Reviewed by Eric Carlson. 8 9 * WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp: 10 (WebKit::LibWebRTCCodecs::encodeFrame): 11 RemoteVideoSample::create can return nullptr if we cannot get an IOSurface from the pixel buffer or if pixel buffer is null 12 due to VTPixelBufferConformerCopyConformedPixelBuffer failing. 13 In that case, we error the encoder instead of trying to encode the frame. 14 1 15 2021-10-11 Myles C. Maxfield <mmaxfield@apple.com> 2 16 -
trunk/Source/WebKit/WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp
r283116 r283975 32 32 #include "LibWebRTCCodecsMessages.h" 33 33 #include "LibWebRTCCodecsProxyMessages.h" 34 #include "Logging.h" 34 35 #include "WebCoreArgumentCoders.h" 35 36 #include "WebProcess.h" … … 448 449 // FIXME: Optimize this code path, currently we have non BGRA for muted frames at least. 449 450 sample = RemoteVideoSample::create(convertToBGRA(pixelBuffer.get()), MediaTime(frame.timestamp_us() * 1000, 1000000), toMediaSampleVideoRotation(frame.rotation())); 451 if (!sample) { 452 RELEASE_LOG_ERROR(WebRTC, "Unable to convert remote video sample"); 453 return WEBRTC_VIDEO_CODEC_ERROR; 454 } 450 455 } 451 456
Note:
See TracChangeset
for help on using the changeset viewer.