diff options
Diffstat (limited to 'libvpx/test/y4m_test.cc')
-rw-r--r-- | libvpx/test/y4m_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libvpx/test/y4m_test.cc b/libvpx/test/y4m_test.cc index 8272263f6..32f2cd51d 100644 --- a/libvpx/test/y4m_test.cc +++ b/libvpx/test/y4m_test.cc @@ -196,12 +196,13 @@ static const char kY4MRegularHeader[] = TEST(Y4MHeaderTest, RegularHeader) { libvpx_test::TempOutFile f; + ASSERT_NE(f.file(), nullptr); fwrite(kY4MRegularHeader, 1, sizeof(kY4MRegularHeader), f.file()); fflush(f.file()); EXPECT_EQ(0, fseek(f.file(), 0, 0)); y4m_input y4m; - EXPECT_EQ(y4m_input_open(&y4m, f.file(), /*skip_buffer=*/NULL, + EXPECT_EQ(y4m_input_open(&y4m, f.file(), /*skip_buffer=*/nullptr, /*num_skip=*/0, /*only_420=*/0), 0); EXPECT_EQ(y4m.pic_w, 4); @@ -222,12 +223,13 @@ static const char kY4MLongHeader[] = TEST(Y4MHeaderTest, LongHeader) { libvpx_test::TempOutFile f; + ASSERT_NE(f.file(), nullptr); fwrite(kY4MLongHeader, 1, sizeof(kY4MLongHeader), f.file()); fflush(f.file()); EXPECT_EQ(fseek(f.file(), 0, 0), 0); y4m_input y4m; - EXPECT_EQ(y4m_input_open(&y4m, f.file(), /*skip_buffer=*/NULL, + EXPECT_EQ(y4m_input_open(&y4m, f.file(), /*skip_buffer=*/nullptr, /*num_skip=*/0, /*only_420=*/0), 0); EXPECT_EQ(y4m.pic_w, 4); |