]> git.sesse.net Git - ffmpeg/commit
avcodec/cbs_av1: add a range check to tg_end
authorJames Almer <jamrial@gmail.com>
Tue, 27 Oct 2020 21:25:06 +0000 (18:25 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 11 Nov 2020 13:23:01 +0000 (10:23 -0300)
commita876bc9c17e4d50e8cb9033c78300944adb6231a
treedaf74a1a7a370c9e0432a27a1328c558686c538e
parentddb0e4fecdef24e8c7b90fa0a41d13e642ea732f
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>
libavcodec/cbs_av1.c
libavcodec/cbs_av1.h
libavcodec/cbs_av1_syntax_template.c