Skip to content

Commit

Permalink
avifdump - Fix format specifiers for 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Drago committed Apr 17, 2020
1 parent 8287aeb commit 22c57ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- avifdump - Fix format specifiers for 32bit

## [0.7.1] - 2020-04-16
### Changed
Expand Down
5 changes: 3 additions & 2 deletions apps/avifdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "avifutil.h"

#include <inttypes.h>
#include <stdio.h>
#include <string.h>

Expand Down Expand Up @@ -62,7 +63,7 @@ int main(int argc, char * argv[])
firstImage = AVIF_FALSE;
avifImageDump(decoder->image);

printf(" * %zu timescales per second, %2.2f seconds (%zu timescales), %d frame%s\n",
printf(" * %" PRIu64 " timescales per second, %2.2f seconds (%" PRIu64 " timescales), %d frame%s\n",
decoder->timescale,
decoder->duration,
decoder->durationInTimescales,
Expand All @@ -71,7 +72,7 @@ int main(int argc, char * argv[])
printf(" * Frames:\n");
}

printf(" * Decoded frame [%d] [pts %2.2f (%zu timescales)] [duration %2.2f (%zu timescales)]\n",
printf(" * Decoded frame [%d] [pts %2.2f (%" PRIu64 " timescales)] [duration %2.2f (%" PRIu64 " timescales)]\n",
frameIndex,
decoder->imageTiming.pts,
decoder->imageTiming.ptsInTimescales,
Expand Down

0 comments on commit 22c57ea

Please sign in to comment.