Add operator<< to a struct in yuv_temporal_filter_test.cc
authorchiyotsai <chiyotsai@google.com>
Mon, 4 Feb 2019 22:18:59 +0000 (14:18 -0800)
committerchiyotsai <chiyotsai@google.com>
Mon, 4 Feb 2019 22:24:24 +0000 (14:24 -0800)
This should resolve valgrind's warning on aceessing uninitialized
values.

BUG=webm:1591

Change-Id: I678cadf448c12b598c9ea09490a7eb4e13e4118c

test/yuv_temporal_filter_test.cc

index e8d1967..9fb170b 100644 (file)
@@ -38,6 +38,10 @@ struct TemporalFilterWithBd {
   int bd;
 };
 
+std::ostream &operator<<(std::ostream &os, const TemporalFilterWithBd &tf) {
+  return os << "Bitdepth: " << tf.bd;
+}
+
 int GetFilterWeight(unsigned int row, unsigned int col,
                     unsigned int block_height, unsigned int block_width,
                     const int *const blk_fw, int use_32x32) {