Write loop_filter_across_tiles_enabled only in multiple tile case
Write loop_filter_across_tiles_enabled bit into bitstream only when
cm->tile_cols * cm->tile_rows > 1.
BUG=aomedia:871
Change-Id: I6fbf0cbf5ab236879f9ff125553415182a74dfb0
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index 18a500e..c420a7f 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -3583,7 +3583,8 @@
#endif // CONFIG_EXT_TILE
#if CONFIG_LOOPFILTERING_ACROSS_TILES
- aom_wb_write_bit(wb, cm->loop_filter_across_tiles_enabled);
+ if (cm->tile_cols * cm->tile_rows > 1)
+ aom_wb_write_bit(wb, cm->loop_filter_across_tiles_enabled);
#endif // CONFIG_LOOPFILTERING_ACROSS_TILES
}