Skip to content

Commit

Permalink
Fix metadata error message in avifJPEGRead() (AOMediaCodec#2048)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon authored Mar 4, 2024
1 parent 3175a61 commit de32f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/shared/avifjpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ static avifBool avifJPEGReadInternal(FILE * f,

if (marker->data_length - AVIF_JPEG_EXIF_HEADER_LENGTH > sizeLimit) {
fprintf(stderr,
"Setting Exif metadata failed: Exif size is too large (%u > %u px): %s\n",
"Setting Exif metadata failed: Exif size is too large (%u > %u bytes): %s\n",
marker->data_length - AVIF_JPEG_EXIF_HEADER_LENGTH,
sizeLimit,
inputFilename);
Expand Down Expand Up @@ -1076,7 +1076,7 @@ static avifBool avifJPEGReadInternal(FILE * f,
if (((uint64_t)standardXMPSize + totalExtendedXMPSize) > SIZE_MAX ||
((uint64_t)standardXMPSize + totalExtendedXMPSize) > sizeLimit) {
fprintf(stderr,
"XMP extraction failed: total XMP size is too large (%u + %u > %u px): %s\n",
"XMP extraction failed: total XMP size is too large (%u + %u > %u bytes): %s\n",
standardXMPSize,
totalExtendedXMPSize,
sizeLimit,
Expand Down

0 comments on commit de32f53

Please sign in to comment.