Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Filter video stream by frame format #1204

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void GstInternalIn::onFrame(const owt_base::Frame& frame)
return;
}

if(frame.additionalInfo.video.width == 1) {
if(frame->format > owt_base::FRAME_FORMAT_AV1 || frame->format < owt_base::FRAME_FORMAT_VP8) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't write condition like this. Use isVideoFrame function defined in MediaFramePipeline.h (https://github.com/open-webrtc-toolkit/owt-server/blob/master/source/core/owt_base/MediaFramePipeline.h#L209)

ELOG_DEBUG("Not a valid video frame\n");
return;
}
Expand Down