]> granicus.if.org Git - libvpx/commitdiff
resize_test.cc: remove unused param warnings
authorJames Zern <jzern@google.com>
Fri, 22 Aug 2014 19:11:42 +0000 (12:11 -0700)
committerJames Zern <jzern@google.com>
Fri, 22 Aug 2014 19:47:52 +0000 (12:47 -0700)
Change-Id: I86b21186e49f9e0ec0d8eb3addaa44b9fd196a6b

test/resize_test.cc

index 8d08f1ee301183499148bc77a5d7029065ce5fa8..9d0c570ae8e557cb03cf425e09e73766c4699fac 100644 (file)
@@ -211,8 +211,8 @@ class ResizeInternalTest : public ResizeTest {
     EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0);
   }
 
-  virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) {
 #if WRITE_COMPRESSED_STREAM
+  virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) {
     ++out_frames_;
 
     // Write initial file header if first frame.
@@ -222,8 +222,8 @@ class ResizeInternalTest : public ResizeTest {
     // Write frame header and data.
     write_ivf_frame_header(pkt, outfile_);
     (void)fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz, outfile_);
-#endif
   }
+#endif
 
   double frame0_psnr_;
 #if WRITE_COMPRESSED_STREAM