| Index: webrtc/modules/video_coding/utility/ivf_file_writer.cc
|
| diff --git a/webrtc/modules/video_coding/utility/ivf_file_writer.cc b/webrtc/modules/video_coding/utility/ivf_file_writer.cc
|
| index 8161a8bc39e88679d47d084972a148f6e7755f31..a3b680d72cacda1ce96cecc8ac663f984d875091 100644
|
| --- a/webrtc/modules/video_coding/utility/ivf_file_writer.cc
|
| +++ b/webrtc/modules/video_coding/utility/ivf_file_writer.cc
|
| @@ -18,7 +18,7 @@
|
|
|
| IvfFileWriter::IvfFileWriter(const std::string& file_name,
|
| std::unique_ptr<FileWrapper> file,
|
| - RtpVideoCodecTypes codec_type)
|
| + VideoCodecType codec_type)
|
| : codec_type_(codec_type),
|
| num_frames_(0),
|
| width_(0),
|
| @@ -34,9 +34,8 @@
|
|
|
| const size_t kIvfHeaderSize = 32;
|
|
|
| -std::unique_ptr<IvfFileWriter> IvfFileWriter::Open(
|
| - const std::string& file_name,
|
| - RtpVideoCodecTypes codec_type) {
|
| +std::unique_ptr<IvfFileWriter> IvfFileWriter::Open(const std::string& file_name,
|
| + VideoCodecType codec_type) {
|
| std::unique_ptr<IvfFileWriter> file_writer;
|
| std::unique_ptr<FileWrapper> file(FileWrapper::Create());
|
| if (file->OpenFile(file_name.c_str(), false) != 0)
|
| @@ -65,19 +64,19 @@
|
| ByteWriter<uint16_t>::WriteLittleEndian(&ivf_header[6], 32); // Header size.
|
|
|
| switch (codec_type_) {
|
| - case kRtpVideoVp8:
|
| + case kVideoCodecVP8:
|
| ivf_header[8] = 'V';
|
| ivf_header[9] = 'P';
|
| ivf_header[10] = '8';
|
| ivf_header[11] = '0';
|
| break;
|
| - case kRtpVideoVp9:
|
| + case kVideoCodecVP9:
|
| ivf_header[8] = 'V';
|
| ivf_header[9] = 'P';
|
| ivf_header[10] = '9';
|
| ivf_header[11] = '0';
|
| break;
|
| - case kRtpVideoH264:
|
| + case kVideoCodecH264:
|
| ivf_header[8] = 'H';
|
| ivf_header[9] = '2';
|
| ivf_header[10] = '6';
|
|
|