Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Jul 13, 2024
1 parent d22e80e commit 7e58bab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inc/rtmpvideosource.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class RtmpVideoSource : public VideoDecoder
} else {
RTC_LOG(LS_ERROR) << "sps " << sps->width << "x" << sps->height;
RTC_LOG(LS_INFO) << "RtmpVideoSource:onData H264 SPS set format " << sps->width << "x" << sps->height;
m_decoder.postFormat("H264", sps->width, sps->height);
postFormat("H264", sps->width, sps->height);

m_cfg.insert(m_cfg.end(), H26X_marker, H26X_marker+sizeof(H26X_marker));
m_cfg.insert(m_cfg.end(), &body[start_sps+2], &body[start_sps+2 + spssize + 1]);
Expand All @@ -155,7 +155,7 @@ class RtmpVideoSource : public VideoDecoder
content.insert(content.end(), H26X_marker, H26X_marker+sizeof(H26X_marker));
content.insert(content.end(), &body[9], &body[size]);
rtc::scoped_refptr<webrtc::EncodedImageBuffer> frame = webrtc::EncodedImageBuffer::Create(content.data(), content.size());
m_decoder.PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameKey);
PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameKey);
}
else if (frameType == 2) {
webrtc::H264::NaluType nalu_type = webrtc::H264::ParseNaluType(body[9]);
Expand All @@ -164,7 +164,7 @@ class RtmpVideoSource : public VideoDecoder
content.insert(content.end(), H26X_marker, H26X_marker+sizeof(H26X_marker));
content.insert(content.end(), &body[9], &body[size]);
rtc::scoped_refptr<webrtc::EncodedImageBuffer> frame = webrtc::EncodedImageBuffer::Create(content.data(), content.size());
m_decoder.PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameDelta);
PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameDelta);
}
}
else if (codecId == CODEC_ID_HEVC) {
Expand Down Expand Up @@ -196,7 +196,7 @@ class RtmpVideoSource : public VideoDecoder
} else {
RTC_LOG(LS_ERROR) << "sps " << sps->width << "x" << sps->height;
RTC_LOG(LS_INFO) << "RtmpVideoSource:onData H265 SPS set format " << sps->width << "x" << sps->height;
m_decoder.postFormat("H265", sps->width, sps->height);
postFormat("H265", sps->width, sps->height);
}
m_cfg.insert(m_cfg.end(), H26X_marker, H26X_marker+sizeof(H26X_marker));
m_cfg.insert(m_cfg.end(), &body[start_sps+2], &body[start_sps+2 + spssize + 1]);
Expand All @@ -220,7 +220,7 @@ class RtmpVideoSource : public VideoDecoder
content.insert(content.end(), H26X_marker, H26X_marker+sizeof(H26X_marker));
content.insert(content.end(), &body[9], &body[size]);
rtc::scoped_refptr<webrtc::EncodedImageBuffer> frame = webrtc::EncodedImageBuffer::Create(content.data(), content.size());
m_decoder.PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameKey);
PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameKey);
}
else if (frameType == 2) {
webrtc::H265::NaluType nalu_type = webrtc::H265::ParseNaluType(body[9]);
Expand All @@ -229,7 +229,7 @@ class RtmpVideoSource : public VideoDecoder
content.insert(content.end(), H26X_marker, H26X_marker+sizeof(H26X_marker));
content.insert(content.end(), &body[9], &body[size]);
rtc::scoped_refptr<webrtc::EncodedImageBuffer> frame = webrtc::EncodedImageBuffer::Create(content.data(), content.size());
m_decoder.PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameDelta);
PostFrame(frame, ts, webrtc::VideoFrameType::kVideoFrameDelta);
}
}
}
Expand Down

0 comments on commit 7e58bab

Please sign in to comment.