Skip to content

Commit

Permalink
fix build of rtmp
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 7, 2024
1 parent d4ca20e commit 4c2b984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/rtmpvideosource.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class RtmpVideoSource : public VideoDecoder
{
m_cfg.clear();
RTC_LOG(LS_INFO) << "RtmpVideoSource::onNewSession H264 SPS size:" << spssize;
absl::optional<webrtc::SpsParser::SpsState> sps = webrtc::SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize);
std::optional<webrtc::SpsParser::SpsState> sps = webrtc::SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize);
if (!sps)
{
RTC_LOG(LS_ERROR) << "cannot parse H264 sps";
Expand Down Expand Up @@ -189,7 +189,7 @@ class RtmpVideoSource : public VideoDecoder
RTC_LOG(LS_INFO) << "RtmpVideoSource::onNewSession H265 SPS size:" << spssize;
if (nalu_type == webrtc::H265::NaluType::kSps)
{
absl::optional<webrtc::H265SpsParser::SpsState> sps = webrtc::H265SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize);
std::optional<webrtc::H265SpsParser::SpsState> sps = webrtc::H265SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize);
if (!sps)
{
RTC_LOG(LS_ERROR) << "cannot parse H265 sps";
Expand Down

0 comments on commit 4c2b984

Please sign in to comment.