From de7fcffe0c1a86c2a4eeda262ffe1b96eefbfe64 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 12 May 2022 18:13:16 +0200 Subject: [PATCH] video_replay: add AV1 support to IVF filewriter which is already supported in modules/video_coding/utility/ivf_file_reader.cc BUG=None Change-Id: I7b00659dc460d372312dff2eb53837a321ab16af Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262246 Reviewed-by: Harald Alvestrand Commit-Queue: Harald Alvestrand Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#37390} --- rtc_tools/video_replay.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtc_tools/video_replay.cc b/rtc_tools/video_replay.cc index 024f00162c..416da72885 100644 --- a/rtc_tools/video_replay.cc +++ b/rtc_tools/video_replay.cc @@ -290,6 +290,8 @@ class DecoderIvfFileWriter : public test::FakeDecoder { video_codec_type_ = VideoCodecType::kVideoCodecVP9; } else if (codec == "H264") { video_codec_type_ = VideoCodecType::kVideoCodecH264; + } else if (codec == "AV1") { + video_codec_type_ = VideoCodecType::kVideoCodecAV1; } else { RTC_LOG(LS_ERROR) << "Unsupported video codec " << codec; RTC_DCHECK_NOTREACHED();