resize_test: silence a warning
the timebase of pts is 1/fps, so casting down to unsigned is safe here.
Change-Id: I2e2f9bb68604c3c5539804685e6166beb54fe83e
diff --git a/test/resize_test.cc b/test/resize_test.cc
index 1963453..1cceb34 100644
--- 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";
}
}