Skip to content

Commit

Permalink
Point out that the check is a necessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
wantehchang committed Jul 14, 2023
1 parent a190722 commit be69c0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/codec_aom.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,11 @@ static avifResult aomCodecEncodeImage(avifCodec * codec,
// https://aomedia-review.googlesource.com/c/aom/+/174421.
static const int aomVersion_3_6_0 = (3 << 16) | (6 << 8);
if (aomVersion == aomVersion_3_6_0) {
// Detect the use of levels 7.x and 8.x, which use a larger max
// tile area (4096 * 4608) than MAX_TILE_AREA (4096 * 2304). The
// larger max tile area may not result in a different bitstream
// (see the tile_info() function in the AV1 spec, Section 5.9.15),
// so this is just a necessary condition for the bug.
if (!doesLevelMatch(image->width, image->height, 8192, 4352, 2) &&
(doesLevelMatch(image->width, image->height, 16384, 8704, 2) ||
doesLevelMatch(image->width, image->height, 32768, 17408, 2))) {
Expand Down

0 comments on commit be69c0a

Please sign in to comment.