[FFmpeg-cvslog] avcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST

Fei Wang git at videolan.org
Wed Dec 11 04:41:21 EET 2019


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Wed Dec 11 09:37:40 2019 +0800| [1ea44178f5fff7eb600026a09a0ce7d477ed0240] | 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>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ea44178f5fff7eb600026a09a0ce7d477ed0240
---

 libavcodec/cbs_av1.c | 1 +
 1 file changed, 1 insertion(+)

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;
 



More information about the ffmpeg-cvslog mailing list