shithub: libvpx

Download patch

ref: 256a4af4d11330e4c540095b4c44e904c3ff5aba
parent: 7381e3330f1fb8becb9d83f1e4085d7109c7d47e
parent: 325bdddc38ad15cf7dd2bc618461a13cfb006812
author: James Zern <[email protected]>
date: Fri Jul 22 21:17:49 EDT 2016

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

--- a/test/resize_test.cc
+++ b/test/resize_test.cc
@@ -369,7 +369,7 @@
   }
 
   virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {
-    if (!frame0_psnr_)
+    if (frame0_psnr_ == 0.)
       frame0_psnr_ = pkt->data.psnr.psnr[0];
     EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0);
   }
@@ -671,7 +671,7 @@
   }
 
   virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {
-    if (!frame0_psnr_)
+    if (frame0_psnr_ == 0.)
       frame0_psnr_ = pkt->data.psnr.psnr[0];
     EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0);
   }