Commit 7d701684 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

Fix warnings about dangling 'else'

Change-Id: Ia99815fece27c616b3f284e3b164de0fcba67232
parent 9cc0cfed
...@@ -414,7 +414,9 @@ class ConvolveTest : public ::testing::TestWithParam<ConvolveParam> { ...@@ -414,7 +414,9 @@ class ConvolveTest : public ::testing::TestWithParam<ConvolveParam> {
void CheckGuardBlocks() { void CheckGuardBlocks() {
for (int i = 0; i < kOutputBufferSize; ++i) { for (int i = 0; i < kOutputBufferSize; ++i) {
if (IsIndexInBorder(i)) EXPECT_EQ(255, output_[i]); if (IsIndexInBorder(i)) {
EXPECT_EQ(255, output_[i]);
}
} }
} }
......
...@@ -59,9 +59,10 @@ void DecoderTest::HandlePeekResult(Decoder *const decoder, ...@@ -59,9 +59,10 @@ void DecoderTest::HandlePeekResult(Decoder *const decoder,
/* Vp8's implementation of PeekStream returns an error if the frame you /* Vp8's implementation of PeekStream returns an error if the frame you
* pass it is not a keyframe, so we only expect AOM_CODEC_OK on the first * pass it is not a keyframe, so we only expect AOM_CODEC_OK on the first
* frame, which must be a keyframe. */ * frame, which must be a keyframe. */
if (video->frame_number() == 0) if (video->frame_number() == 0) {
ASSERT_EQ(AOM_CODEC_OK, res_peek) ASSERT_EQ(AOM_CODEC_OK, res_peek)
<< "Peek return failed: " << aom_codec_err_to_string(res_peek); << "Peek return failed: " << aom_codec_err_to_string(res_peek);
}
} else { } else {
/* The Av1 implementation of PeekStream returns an error only if the /* The Av1 implementation of PeekStream returns an error only if the
* data passed to it isn't a valid Av1 chunk. */ * data passed to it isn't a valid Av1 chunk. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment