From 3a47aab696f60e61fa95ea9f6cf89106dd36d211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arttu=20Yl=C3=A4-Outinen?= Date: Mon, 6 Jul 2015 10:48:19 +0300 Subject: [PATCH] Fix allocating tile boundary arrays. Column and row numbers had been mixed up. --- src/encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoder.c b/src/encoder.c index 7c6b6f0f..68e0019a 100644 --- a/src/encoder.c +++ b/src/encoder.c @@ -209,9 +209,9 @@ encoder_control_t* encoder_control_init(const kvz_config *const cfg) { encoder->tiles_row_height = tiles_row_height = MALLOC(int32_t, encoder->tiles_num_tile_rows); - encoder->tiles_row_bd = tiles_row_bd = - MALLOC(int32_t, encoder->tiles_num_tile_columns + 1); encoder->tiles_col_bd = tiles_col_bd = + MALLOC(int32_t, encoder->tiles_num_tile_columns + 1); + encoder->tiles_row_bd = tiles_row_bd = MALLOC(int32_t, encoder->tiles_num_tile_rows + 1); encoder->tiles_ctb_addr_rs_to_ts = tiles_ctb_addr_rs_to_ts =