Remove spam log from IvfFileWriter.
The IvfFileWriter logs a warning in case frames have a different
resolution compared to the one of the first frame in the file.
While this is an issue, since the IVF header will have the resolution
of the first frame, in reality this is not a problem (e.g. tools like
VLC can open and play the IVF without issues).
For this reason, let's remove the log which gets printed for each
frame.
Bug: b/282678729
Change-Id: I540cd1b6ce4f5d888737725e7615918aa126647f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/305280
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40069}
diff --git a/modules/video_coding/utility/ivf_file_writer.cc b/modules/video_coding/utility/ivf_file_writer.cc
index 668390a..cabfd49 100644
--- a/modules/video_coding/utility/ivf_file_writer.cc
+++ b/modules/video_coding/utility/ivf_file_writer.cc
@@ -160,15 +160,6 @@
return false;
RTC_DCHECK_EQ(codec_type_, codec_type);
- if ((encoded_image._encodedWidth > 0 || encoded_image._encodedHeight > 0) &&
- (encoded_image._encodedHeight != height_ ||
- encoded_image._encodedWidth != width_)) {
- RTC_LOG(LS_WARNING)
- << "Incoming frame has resolution different from previous: (" << width_
- << "x" << height_ << ") -> (" << encoded_image._encodedWidth << "x"
- << encoded_image._encodedHeight << ")";
- }
-
int64_t timestamp = using_capture_timestamps_
? encoded_image.capture_time_ms_
: wrap_handler_.Unwrap(encoded_image.Timestamp());