From 4c2b984d44568b304e2f8de54fca5c286ed71993 Mon Sep 17 00:00:00 2001 From: Michel Promonet Date: Sat, 7 Sep 2024 20:06:29 +0200 Subject: [PATCH] fix build of rtmp --- inc/rtmpvideosource.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/rtmpvideosource.h b/inc/rtmpvideosource.h index 527331db..4aad84af 100644 --- a/inc/rtmpvideosource.h +++ b/inc/rtmpvideosource.h @@ -124,7 +124,7 @@ class RtmpVideoSource : public VideoDecoder { m_cfg.clear(); RTC_LOG(LS_INFO) << "RtmpVideoSource::onNewSession H264 SPS size:" << spssize; - absl::optional sps = webrtc::SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize); + std::optional sps = webrtc::SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize); if (!sps) { RTC_LOG(LS_ERROR) << "cannot parse H264 sps"; @@ -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 sps = webrtc::H265SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize); + std::optional sps = webrtc::H265SpsParser::ParseSps((const unsigned char*)(&body[start_sps+3]), spssize); if (!sps) { RTC_LOG(LS_ERROR) << "cannot parse H265 sps";