Handle cases with no tile data to decode
BUG=aomedia:1498
Change-Id: I3fe85f67247f2dea0c2413873a1ca13a95f0961e
diff --git a/av1/decoder/decodeframe.c b/av1/decoder/decodeframe.c
index 4cf6e8e..120bc69 100644
--- a/av1/decoder/decodeframe.c
+++ b/av1/decoder/decodeframe.c
@@ -1939,6 +1939,10 @@
allow_update_cdf = 1;
}
+ // No tiles to decode.
+ if (tile_rows_end <= tile_rows_start || tile_cols_end <= tile_cols_start)
+ return data;
+
#if CONFIG_CDF_UPDATE_MODE
allow_update_cdf = allow_update_cdf && !cm->disable_cdf_update;
#endif // CONFIG_CDF_UPDATE_MODE