Browse Source

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 <jamrial@gmail.com>
tags/n4.3
James Almer 6 years ago
parent
commit
ca9bbfb8e5
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/av1_parse.h

+ 3
- 1
libavcodec/av1_parse.h View 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


Loading…
Cancel
Save