diff options
author | Fei Wang <fei.w.wang@intel.com> | 2019-12-11 09:37:40 +0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-12-11 22:19:03 -0300 |
commit | 69abae318a7e557fc39723a2baa07fa4c6d77b45 (patch) | |
tree | a61257db6163126402bc0191c1fe981697a08a04 /libavcodec/cbs_av1.c | |
parent | 0493699813ccff57f9ac317afdc1c8be97cc64f5 (diff) | |
download | ffmpeg-69abae318a7e557fc39723a2baa07fa4c6d77b45.tar.gz |
avcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 1ea44178f5fff7eb600026a09a0ce7d477ed0240)
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 533a4ffa16..cf3561a4ea 100644 --- a/libavcodec/cbs_av1.c +++ b/libavcodec/cbs_av1.c @@ -1040,6 +1040,7 @@ static int cbs_av1_read_unit(CodedBitstreamContext *ctx, if (obu->obu_size > 0 && obu->header.obu_type != AV1_OBU_TILE_GROUP && + obu->header.obu_type != AV1_OBU_TILE_LIST && obu->header.obu_type != AV1_OBU_FRAME) { int nb_bits = obu->obu_size * 8 + start_pos - end_pos; |