Skip to content

Fixed usage of old-version webrtc::VideoFrame#271

Merged
auscaster merged 1 commit intosourcey:masterfrom
mr-kakorin:opencv-example-fix
Jun 27, 2019
Merged

Fixed usage of old-version webrtc::VideoFrame#271
auscaster merged 1 commit intosourcey:masterfrom
mr-kakorin:opencv-example-fix

Conversation

@mr-kakorin
Copy link
Contributor

This examples could not be compiled right now due to error:
"In member function 'virtual void scy::webrtc::ObjectDetector::OnFrame(const webrtc::VideoFrame&)': 'class webrtc::VideoFrameBuffer' has no member named 'DataY'

In newer versions of webrtc(including webrtc-22215-ab42706 which is used in libsourcey) methods DataY (and DataU, DataV) moved from VideoFrameBuffer to PlanarYuv8Buffer which is implemented by I420Buffer. To access instance of I420Buffer GetI420() should be called.

In newer versions(including webrtc-22215-ab42706) of webrtc methods DataY (and DataU, DataV) moved from VideoFrameBuffer to PlanarYuv8Buffer which is implemented by I420Buffer. To access instance of I420Buffer GetI420() should be called.
@auscaster
Copy link
Member

Thank, glad to merge this in 👍

@auscaster auscaster merged commit 067d146 into sourcey:master Jun 27, 2019
auscaster added a commit that referenced this pull request Mar 23, 2026
Fixed usage of old-version webrtc::VideoFrame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants