summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_av1.c
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2019-12-11 09:37:40 +0800
committerJames Almer <jamrial@gmail.com>2019-12-10 23:39:16 -0300
commit1ea44178f5fff7eb600026a09a0ce7d477ed0240 (patch)
tree36ce0c51dcbefc90ccec280bc4b1aad60a9ec65e /libavcodec/cbs_av1.c
parent7e665e4a81e2e96eb45138a1dfa38617de2631a4 (diff)
downloadffmpeg-1ea44178f5fff7eb600026a09a0ce7d477ed0240.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>
Diffstat (limited to 'libavcodec/cbs_av1.c')
-rw-r--r--libavcodec/cbs_av1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index bbe4461130..ab006f4d11 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -1039,6 +1039,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;