Changeset 284831 in webkit
- Timestamp:
- Oct 25, 2021, 2:51:00 PM (5 years ago)
- Location:
- branches/safari-612-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612-branch/Source/WebKit/ChangeLog
r284829 r284831 1 2021-10-25 Null <null@apple.com> 2 3 Cherry-pick r283975. rdar://problem/84630618 4 5 Error the encoder in case we cannot create a RemoteVideoSample 6 https://bugs.webkit.org/show_bug.cgi?id=231505 7 <rdar://83975229> 8 9 Reviewed by Eric Carlson. 10 11 * WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp: 12 (WebKit::LibWebRTCCodecs::encodeFrame): 13 RemoteVideoSample::create can return nullptr if we cannot get an IOSurface from the pixel buffer or if pixel buffer is null 14 due to VTPixelBufferConformerCopyConformedPixelBuffer failing. 15 In that case, we error the encoder instead of trying to encode the frame. 16 17 18 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283975 268f45cc-cd09-0410-ab3c-d52691b4dbfc 19 20 2021-10-12 Youenn Fablet <youenn@apple.com> 21 22 Error the encoder in case we cannot create a RemoteVideoSample 23 https://bugs.webkit.org/show_bug.cgi?id=231505 24 <rdar://83975229> 25 26 Reviewed by Eric Carlson. 27 28 * WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp: 29 (WebKit::LibWebRTCCodecs::encodeFrame): 30 RemoteVideoSample::create can return nullptr if we cannot get an IOSurface from the pixel buffer or if pixel buffer is null 31 due to VTPixelBufferConformerCopyConformedPixelBuffer failing. 32 In that case, we error the encoder instead of trying to encode the frame. 33 1 34 2021-10-25 Null <null@apple.com> 2 35 -
branches/safari-612-branch/Source/WebKit/WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp
r284392 r284831 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.