From 3ba93177dd736a7c5486c1aac807ccce0601da95 Mon Sep 17 00:00:00 2001 From: Michel Promonet Date: Mon, 6 Nov 2023 21:35:08 +0100 Subject: [PATCH] log --- inc/NullEncoder.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/NullEncoder.h b/inc/NullEncoder.h index c86400fd..85d43082 100644 --- a/inc/NullEncoder.h +++ b/inc/NullEncoder.h @@ -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; }