From a876bc9c17e4d50e8cb9033c78300944adb6231a Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 27 Oct 2020 18:25:06 -0300 Subject: avcodec/cbs_av1: add a range check to tg_end Section 6.10.1 of the AV1 spec states: It is a requirement of bitstream conformance that the value of tg_start is equal to the value of TileNum at the point that tile_group_obu is invoked. It is a requirement of bitstream conformance that the value of tg_end is greater than or equal to tg_start. Signed-off-by: James Almer --- libavcodec/cbs_av1.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/cbs_av1.h') diff --git a/libavcodec/cbs_av1.h b/libavcodec/cbs_av1.h index a2d78e736f..386774750a 100644 --- a/libavcodec/cbs_av1.h +++ b/libavcodec/cbs_av1.h @@ -446,6 +446,7 @@ typedef struct CodedBitstreamAV1Context { int all_lossless; int tile_cols; int tile_rows; + int tile_num; AV1ReferenceFrameState ref[AV1_NUM_REF_FRAMES]; } CodedBitstreamAV1Context; -- cgit v1.2.3