mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	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 <jamrial@gmail.com>
This commit is contained in:
		| @@ -1205,6 +1205,7 @@ static void cbs_av1_flush(CodedBitstreamContext *ctx) | ||||
|     memset(priv->ref, 0, sizeof(priv->ref)); | ||||
|     priv->operating_point_idc = 0; | ||||
|     priv->seen_frame_header = 0; | ||||
|     priv->tile_num = 0; | ||||
| } | ||||
|  | ||||
| static void cbs_av1_close(CodedBitstreamContext *ctx) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 James Almer
					James Almer