shithub: libvpx

Download patch

ref: 8619274ea384500abeb698f832815ca892266954
parent: 4e04fa6dea716d4dafdb8a1d1dedc15455cddf3b
author: Jim Bankoski <jimbankoski@google.com>
date: Tue Dec 23 03:35:26 EST 2014

assert that the write writes the whole packet

As a side effect this should avoid an unsigned signed failure in
jenkins.

Change-Id: I8e6a9c3dbd4252d37e6325f95fc80e49ce4cc59e

--- a/test/decode_perf_test.cc
+++ b/test/decode_perf_test.cc
@@ -176,7 +176,8 @@
 
     // Write frame header and data.
     ivf_write_frame_header(outfile_, out_frames_, pkt->data.frame.sz);
-    ASSERT_GT(fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz, outfile_), 0);
+    ASSERT_EQ(fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz, outfile_),
+              pkt->data.frame.sz);
   }
 
   virtual bool DoDecode() { return false; }