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:
hta
2016-05-09 10:56:30 -07:00
committed by Commit bot
parent 5488a21f3a
commit db3eea0ede

View File

@ -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