Fix frame rate scaling in video codec tests

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 <asapersson@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39581}
This commit is contained in:
Sergey Silkin 2023-03-16 14:36:44 +01:00 committed by WebRTC LUCI CQ
parent 766adcdeb8
commit 82e8a7fdca

View File

@ -129,8 +129,8 @@ class TestRawVideoSource : public VideoCodecTester::RawVideoSource {
int pulled_frame;
auto buffer = frame_reader_->PullFrame(
&pulled_frame, resolution,
{.num = static_cast<int>(video_info_.framerate.millihertz()),
.den = static_cast<int>(framerate.millihertz())});
{.num = static_cast<int>(framerate.millihertz()),
.den = static_cast<int>(video_info_.framerate.millihertz())});
RTC_CHECK(buffer) << "Cannot pull frame " << frame_num_;
auto frame = VideoFrame::Builder()