diff options
author | James Almer <jamrial@gmail.com> | 2020-10-27 18:25:06 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-11-11 10:23:01 -0300 |
commit | a876bc9c17e4d50e8cb9033c78300944adb6231a (patch) | |
tree | daf74a1a7a370c9e0432a27a1328c558686c538e /libavcodec/cbs_av1.c | |
parent | ddb0e4fecdef24e8c7b90fa0a41d13e642ea732f (diff) | |
download | ffmpeg-a876bc9c17e4d50e8cb9033c78300944adb6231a.tar.gz |
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>
Diffstat (limited to 'libavcodec/cbs_av1.c')
-rw-r--r-- | libavcodec/cbs_av1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c index 8aa7b09fa7..9badfe31e4 100644 --- a/libavcodec/cbs_av1.c +++ b/libavcodec/cbs_av1.c @@ -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) |