]> granicus.if.org Git - libvpx/commitdiff
vp10: don't write tile size marker bit if CONFIG_MISC_FIXES=0.
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 12 Oct 2015 20:35:32 +0000 (16:35 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 12 Oct 2015 21:50:57 +0000 (17:50 -0400)
Change-Id: I41b13b8767e30da391c2c4da9a729ca7292b16b9

vp10/encoder/bitstream.c

index 1661fbd5d897556d880942effec4a7dfd3cdbf6a..3269fc7c52196495b0d10aca2d6f5d7dbdc0a215 100644 (file)
@@ -1348,14 +1348,19 @@ static int remux_tiles(uint8_t *dest, const int sz,
 #endif
 
 void vp10_pack_bitstream(VP10_COMP *const cpi, uint8_t *dest, size_t *size) {
-  VP10_COMMON *const cm = &cpi->common;
   uint8_t *data = dest;
   size_t first_part_size, uncompressed_hdr_size;
   struct vpx_write_bit_buffer wb = {data, 0};
   struct vpx_write_bit_buffer saved_wb;
   unsigned int max_tile, data_sz;
+#if CONFIG_MISC_FIXES
+  VP10_COMMON *const cm = &cpi->common;
   const int n_log2_tiles = cm->log2_tile_rows + cm->log2_tile_cols;
   const int have_tiles = n_log2_tiles > 0;
+#else
+  const int have_tiles = 0;  // we have tiles, but we don't want to write a
+                             // tile size marker in the header
+#endif
 
   write_uncompressed_header(cpi, &wb);
   saved_wb = wb;