提交 1ea44178 编写于 作者: F Fei Wang 提交者: James Almer

avcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST

Signed-off-by: NFei Wang <fei.w.wang@intel.com>
Signed-off-by: NJames Almer <jamrial@gmail.com>
上级 7e665e4a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册