Commit ca9bbfb8 authored by James Almer's avatar 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: 's avatarJames Almer <jamrial@gmail.com>
parent 0815a22d
...@@ -146,7 +146,9 @@ static inline int get_obu_bit_length(const uint8_t *buf, int size, int type) ...@@ -146,7 +146,9 @@ static inline int get_obu_bit_length(const uint8_t *buf, int size, int type)
int v; int v;
/* There are no trailing bits on these */ /* 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) if (size > INT_MAX / 8)
return AVERROR(ERANGE); return AVERROR(ERANGE);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment