mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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:
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…
Reference in New Issue
Block a user