ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Wed Feb  5 11:50:20 
2020 -0300| [ca9bbfb8e5d0fae2eba48883ff05d9485270e158] | committer: James Almer

avcodec/av1_parse: don't look for trailing bits in Tile List OBUs

The spec states there aren't any.

Signed-off-by: James Almer <jamr...@gmail.com>

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

 libavcodec/av1_parse.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/av1_parse.h b/libavcodec/av1_parse.h
index f3d932bc55..01bcd646c2 100644
--- a/libavcodec/av1_parse.h
+++ b/libavcodec/av1_parse.h
@@ -146,7 +146,9 @@ static inline int get_obu_bit_length(const uint8_t *buf, 
int size, int type)
     int v;
 
     /* There are no trailing bits on these */
-    if (type == AV1_OBU_TILE_GROUP || type == AV1_OBU_FRAME) {
+    if (type == AV1_OBU_TILE_GROUP ||
+        type == AV1_OBU_TILE_LIST ||
+        type == AV1_OBU_FRAME) {
         if (size > INT_MAX / 8)
             return AVERROR(ERANGE);
         else

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to