]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/av1_parse.h
avcodec/cfhd: check if band encoding is valid
[ffmpeg] / libavcodec / av1_parse.h
index 864308f81da2a68723bc979deb4f0b71d3da8ccc..01bcd646c2ea85778d0ba16d6e1fe63ee872e4a0 100644 (file)
@@ -56,6 +56,7 @@ typedef struct AV1Packet {
     AV1OBU *obus;
     int nb_obus;
     int obus_allocated;
+    unsigned obus_allocated_size;
 } AV1Packet;
 
 /**
@@ -145,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