[FFmpeg-cvslog] avcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST
Fei Wang
git at videolan.org
Mon Jan 6 17:16:47 EET 2020
ffmpeg | branch: release/4.1 | Fei Wang <fei.w.wang at intel.com> | Wed Dec 11 09:37:40 2019 +0800| [c96a52b7146244a0515b8bdd67fa3b6a0a143974] | committer: James Almer
avcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST
Signed-off-by: Fei Wang <fei.w.wang at intel.com>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 1ea44178f5fff7eb600026a09a0ce7d477ed0240)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c96a52b7146244a0515b8bdd67fa3b6a0a143974
---
libavcodec/cbs_av1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index c680b34f17..8e962b8721 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -1072,6 +1072,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;
More information about the ffmpeg-cvslog
mailing list