Commit 73eb764a authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review

Merge "resize_test: fix implicit float->int conversion" into nextgenv2

parents 8e3766f9 60be793e
...@@ -369,7 +369,7 @@ class ResizeInternalTest : public ResizeTest { ...@@ -369,7 +369,7 @@ class ResizeInternalTest : public ResizeTest {
} }
virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {
if (!frame0_psnr_) if (frame0_psnr_ == 0.)
frame0_psnr_ = pkt->data.psnr.psnr[0]; frame0_psnr_ = pkt->data.psnr.psnr[0];
EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0);
} }
...@@ -671,7 +671,7 @@ class ResizeCspTest : public ResizeTest { ...@@ -671,7 +671,7 @@ class ResizeCspTest : public ResizeTest {
} }
virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {
if (!frame0_psnr_) if (frame0_psnr_ == 0.)
frame0_psnr_ = pkt->data.psnr.psnr[0]; frame0_psnr_ = pkt->data.psnr.psnr[0];
EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment