Fix bitstream debug failure
Move bitstream_queue_reset_write() out of experimental flag
Change-Id: I622e9c3e8d5b668e68c53c2a0484173e7a65c808
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index ef746ed..ccf485f 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -4997,16 +4997,16 @@
unsigned int max_tile_size;
unsigned int max_tile_col_size;
+#if CONFIG_BITSTREAM_DEBUG
+ bitstream_queue_reset_write();
+#endif
+
#if !CONFIG_TILE_GROUPS
int tile_size_bytes;
int tile_col_size_bytes;
AV1_COMMON *const cm = &cpi->common;
const int have_tiles = cm->tile_cols * cm->tile_rows > 1;
-#if CONFIG_BITSTREAM_DEBUG
- bitstream_queue_reset_write();
-#endif
-
// Write the uncompressed header
write_uncompressed_header(cpi, &wb);