Fix codec name logging in ivf_file_writer.cc
The logging code was using the wrong constants for the codec type, resulting in the type always being "unknown". Tested: modules_unittests --gtest_filter='IvfFile*' -logs BUG= Review-Url: https://codereview.webrtc.org/1955273002 Cr-Commit-Position: refs/heads/master@{#12668}
This commit is contained in:
@ -118,17 +118,17 @@ bool IvfFileWriter::InitFromFirstFrame(const EncodedImage& encoded_image) {
|
||||
|
||||
std::string codec_name;
|
||||
switch (codec_type_) {
|
||||
case kRtpVideoVp8:
|
||||
case kVideoCodecVP8:
|
||||
codec_name = "VP8";
|
||||
break;
|
||||
case kRtpVideoVp9:
|
||||
case kVideoCodecVP9:
|
||||
codec_name = "VP9";
|
||||
break;
|
||||
case kRtpVideoH264:
|
||||
case kVideoCodecH264:
|
||||
codec_name = "H264";
|
||||
break;
|
||||
default:
|
||||
codec_name = "Unkown";
|
||||
codec_name = "Unknown";
|
||||
}
|
||||
LOG(LS_WARNING) << "Created IVF file " << file_name_
|
||||
<< " for codec data of type " << codec_name
|
||||
|
||||
Reference in New Issue
Block a user