]> granicus.if.org Git - libvpx/commitdiff
Correct a couple of typos
authorYaowu Xu <yaowu@google.com>
Fri, 8 Nov 2013 20:43:51 +0000 (12:43 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 8 Nov 2013 20:43:51 +0000 (12:43 -0800)
Change-Id: Ic470c6c9ce27b615c9645b9cb0d67526417bc374

vp9/decoder/vp9_decodframe.c
vp9/encoder/vp9_bitstream.c

index 7d92e73f22bc8361d05bf40c8d2bf438c4351221..254ab1e9aa08b1096fa7a62832a9187f46a42c62 100644 (file)
@@ -891,8 +891,8 @@ static const uint8_t *decode_tiles(VP9D_COMP *pbi, const uint8_t *data) {
   const uint8_t *end = NULL;
   vp9_reader r;
 
-  assert(tile_rows < 4);
-  assert(tile_cols < (1 << 6));
+  assert(tile_rows <= 4);
+  assert(tile_cols <= (1 << 6));
 
   // Note: this memset assumes above_context[0], [1] and [2]
   // are allocated as part of the same buffer.
index 87bd36c2bfa70c2feadff7217ca9fe772e4ffcec..07a67a58557045ca12585ab509768c278d8706d6 100644 (file)
@@ -1217,7 +1217,7 @@ static size_t encode_tiles(VP9_COMP *cpi, uint8_t *data_ptr) {
     for (tile_col = 0; tile_col < tile_cols; tile_col++) {
       TileInfo tile;
 
-      vp9_tile_init(&tile, cm, 0, tile_col);
+      vp9_tile_init(&tile, cm, tile_row, tile_col);
       tok_end = tok[tile_row][tile_col] + cpi->tok_count[tile_row][tile_col];
 
       if (tile_col < tile_cols - 1 || tile_row < tile_rows - 1)