From 82e8a7fdca6b88d81f5a1578482a94b36ba9a503 Mon Sep 17 00:00:00 2001 From: Sergey Silkin Date: Thu, 16 Mar 2023 14:36:44 +0100 Subject: [PATCH] Fix frame rate scaling in video codec tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swap numerator and denominator values. Bug: b/261160916, webrtc:14852 Change-Id: Id1fa81ac8e13513005a53b7034f1d38bb1602c2f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/297960 Reviewed-by: Åsa Persson Commit-Queue: Sergey Silkin Cr-Commit-Position: refs/heads/main@{#39581} --- modules/video_coding/codecs/test/video_codec_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video_coding/codecs/test/video_codec_test.cc b/modules/video_coding/codecs/test/video_codec_test.cc index e49d743716..535254a7f3 100644 --- a/modules/video_coding/codecs/test/video_codec_test.cc +++ b/modules/video_coding/codecs/test/video_codec_test.cc @@ -129,8 +129,8 @@ class TestRawVideoSource : public VideoCodecTester::RawVideoSource { int pulled_frame; auto buffer = frame_reader_->PullFrame( &pulled_frame, resolution, - {.num = static_cast(video_info_.framerate.millihertz()), - .den = static_cast(framerate.millihertz())}); + {.num = static_cast(framerate.millihertz()), + .den = static_cast(video_info_.framerate.millihertz())}); RTC_CHECK(buffer) << "Cannot pull frame " << frame_num_; auto frame = VideoFrame::Builder()