Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Nov 6, 2023
1 parent ac42c0d commit 3ba9317
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/NullEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ class NullEncoder : public webrtc::VideoEncoder {
if (m_format.name == "H264") {
codec_specific.codecType = webrtc::VideoCodecType::kVideoCodecH264;
}
else if (m_format.name == "H265") {
codec_specific.codecType = webrtc::VideoCodecType::kVideoCodecH265;
}
webrtc::EncodedImageCallback::Result result = m_encoded_image_callback->OnEncodedImage(encoded_image, &codec_specific);
if (result.error == webrtc::EncodedImageCallback::Result::ERROR_SEND_FAILED) {
RTC_LOG(LS_ERROR) << "Error in parsing EncodedImage" << encoded_image._frameType;
RTC_LOG(LS_ERROR) << "Error in parsing EncodedImage " << frame.id() << " " << encoded_image._frameType << " " << buffer->width() << "x" << buffer->height() << " " << buffer->GetI420()->StrideY();
}
return WEBRTC_VIDEO_CODEC_OK;
}
Expand Down

0 comments on commit 3ba9317

Please sign in to comment.