Skip to content

Commit

Permalink
avifenc: Allow large images to be encoded
Browse files Browse the repository at this point in the history
Pass UINT32_MAX as the imageSizeLimit argument to avifReadImage() and
y4mRead().

Bug: #2271
  • Loading branch information
wantehchang authored Jul 30, 2024
1 parent ecf700f commit a701174
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The changes are relative to the previous release, unless the baseline is specifi

## [Unreleased]

### Changed since 1.1.1
* avifenc: Allow large images to be encoded.

## [1.1.1] - 2024-07-30

### Changed since 1.1.0
Expand Down
4 changes: 2 additions & 2 deletions apps/avifenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ static avifBool avifInputReadImage(avifInput * input,
if (feof(stdin)) {
return AVIF_FALSE;
}
if (!y4mRead(NULL, AVIF_DEFAULT_IMAGE_SIZE_LIMIT, dstImage, dstSourceTiming, &input->frameIter)) {
if (!y4mRead(NULL, UINT32_MAX, dstImage, dstSourceTiming, &input->frameIter)) {
fprintf(stderr, "ERROR: Cannot read y4m through standard input");
return AVIF_FALSE;
}
Expand Down Expand Up @@ -611,7 +611,7 @@ static avifBool avifInputReadImage(avifInput * input,
ignoreXMP,
allowChangingCicp,
ignoreGainMap,
AVIF_DEFAULT_IMAGE_SIZE_LIMIT,
UINT32_MAX,
dstImage,
dstDepth,
dstSourceTiming,
Expand Down

0 comments on commit a701174

Please sign in to comment.