ref: 17b899322c7b6f9e18fdacf1fc261ed562f874d5
parent: 1c3fc437717a790e2f97be5b5484b8914336af6e
author: James Zern <[email protected]>
date: Fri Jan 31 15:10:28 EST 2014
resize_test: silence a warning the timebase of pts is 1/fps, so casting down to unsigned is safe here. Change-Id: I2e2f9bb68604c3c5539804685e6166beb54fe83e
--- a/test/resize_test.cc
+++ b/test/resize_test.cc
@@ -148,14 +148,14 @@
for (std::vector<FrameInfo>::iterator info = frame_info_list_.begin();
info != frame_info_list_.end(); ++info) {
- const vpx_codec_pts_t pts = info->pts;
- const unsigned int expected_w = ScaleForFrameNumber(pts, kInitialWidth);
- const unsigned int expected_h = ScaleForFrameNumber(pts, kInitialHeight);
+ const unsigned int frame = static_cast<unsigned>(info->pts);
+ const unsigned int expected_w = ScaleForFrameNumber(frame, kInitialWidth);
+ const unsigned int expected_h = ScaleForFrameNumber(frame, kInitialHeight);
EXPECT_EQ(expected_w, info->w)
- << "Frame " << pts << "had unexpected width";
+ << "Frame " << frame << "had unexpected width";
EXPECT_EQ(expected_h, info->h)
- << "Frame " << pts << "had unexpected height";
+ << "Frame " << frame << "had unexpected height";
}
}