Skip to content

Commit

Permalink
Fix MediaFrame to VideoFrame conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
murillo128 committed May 12, 2023
1 parent 24020f5 commit 275cb8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MediaFrameListenerBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ void MediaFrameListenerBridge::onMediaFrame(DWORD ignored, const MediaFrame& fra
//UPdate size for video
if (frame->GetType() == MediaFrame::Video)
{
//Convert
auto videoFrame = std::static_pointer_cast<VideoFrame>(frame);
//Set width and height
width = frame->GetWidth();
height = frame->GetHeight();
width = videoFrame->GetWidth();
height = videoFrame->GetHeight();
}

//Get info
Expand Down

0 comments on commit 275cb8b

Please sign in to comment.