Revert "avcodec/av1dec: Check tile_cols"

This reverts commit 4fdfe430c1.

The previous commit ensures this field will never be zero.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-03-23 09:40:05 -03:00
parent 5670eddf8c
commit b65ce7bed8
1 changed files with 0 additions and 3 deletions

View File

@ -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;