]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/av1_parse: don't look for trailing bits in Tile List OBUs
authorJames Almer <jamrial@gmail.com>
Wed, 5 Feb 2020 14:50:20 +0000 (11:50 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 5 Feb 2020 14:54:00 +0000 (11:54 -0300)
The spec states there aren't any.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/av1_parse.h

index f3d932bc5507e0c433435e2ff970cbd93006ff79..01bcd646c2ea85778d0ba16d6e1fe63ee872e4a0 100644 (file)
@@ -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