Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Aug 6, 2023
1 parent 51b8eb5 commit a4a794d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion html
1 change: 1 addition & 0 deletions inc/livevideosource.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class LiveVideoSource : public VideoSourceWithDecoder, public T::Callback
RTC_LOG(LS_VERBOSE) << "LiveVideoSource:onData nbNalu:" << indexes.size();
for (const webrtc::H264::NaluIndex & index : indexes) {
webrtc::H264::NaluType nalu_type = webrtc::H264::ParseNaluType(buffer[index.payload_start_offset]);
RTC_LOG(LS_VERBOSE) << "LiveVideoSource:onData NALU type:" << nalu_type << " payload_size:" << index.payload_size << " payload_start_offset:" << index.payload_start_offset << " start_offset:" << index.start_offset;
if (nalu_type == webrtc::H264::NaluType::kSps)
{
RTC_LOG(LS_VERBOSE) << "LiveVideoSource:onData SPS";
Expand Down

0 comments on commit a4a794d

Please sign in to comment.