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>
This commit is contained in:
parent
5670eddf8c
commit
b65ce7bed8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user