aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-23 09:40:05 -0300
committerJames Almer <jamrial@gmail.com>2022-03-23 12:03:57 -0300
commitb65ce7bed8d7403d330bc454a972e7b9dfd4f710 (patch)
treec1c57ca29767bb26f33538ece526d35eddaf9556
parent5670eddf8cd3907f9c0a9e626b5698d27c81c81b (diff)
downloadffmpeg-b65ce7bed8d7403d330bc454a972e7b9dfd4f710.tar.gz
Revert "avcodec/av1dec: Check tile_cols"
This reverts commit 4fdfe430c12225e819f68993474bd2f473c7e8b1. The previous commit ensures this field will never be zero. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/av1dec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index d107b6c394..0646b86908 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -398,9 +398,6 @@ static int get_tiles_info(AVCodecContext *avctx, const AV1RawTileGroup *tile_gro
s->tg_start = tile_group->tg_start;
s->tg_end = tile_group->tg_end;
- if (s->raw_frame_header->tile_cols == 0)
- return AVERROR_INVALIDDATA;
-
for (tile_num = tile_group->tg_start; tile_num <= tile_group->tg_end; tile_num++) {
tile_row = tile_num / s->raw_frame_header->tile_cols;
tile_col = tile_num % s->raw_frame_header->tile_cols;