diff mbox series

[FFmpeg-devel,2/2] Revert "avcodec/av1dec: Check tile_cols"

Message ID 20220322191100.3071-2-jamrial@gmail.com
State Accepted
Commit b65ce7bed8d7403d330bc454a972e7b9dfd4f710
Headers show
Series [FFmpeg-devel,1/2] avcodec/av1: only set the private context pix_fmt field if get_pixel_format() succeeds | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/configure_x86 warning Failed to apply patch

Commit Message

James Almer March 22, 2022, 7:11 p.m. UTC
This reverts commit 4fdfe430c12225e819f68993474bd2f473c7e8b1.

The previous commit ensures this field will never be zero.
 libavcodec/av1dec.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series


diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index 727d829e5b..0543452b06 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;