Skip to content

Commit

Permalink
avifutil: Use simpler check for printing repeat count
Browse files Browse the repository at this point in the history
Use imageSequenceTrackPresent as the check instead of checking
progressive state and image count.
vigneshvg committed May 3, 2024
1 parent 4db10a8 commit 0a7a58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/shared/avifutil.c
Original file line number Diff line number Diff line change
@@ -184,7 +184,7 @@ void avifContainerDump(const avifDecoder * decoder)
gainMapPresent = decoder->gainMapPresent;
#endif
avifImageDumpInternal(decoder->image, 0, 0, decoder->alphaPresent, gainMapPresent, decoder->progressiveState);
if ((decoder->progressiveState == AVIF_PROGRESSIVE_STATE_UNAVAILABLE) && (decoder->imageCount > 1)) {
if (decoder->imageSequenceTrackPresent) {
if (decoder->repetitionCount == AVIF_REPETITION_COUNT_INFINITE) {
printf(" * Repeat Count : Infinite\n");
} else if (decoder->repetitionCount == AVIF_REPETITION_COUNT_UNKNOWN) {

0 comments on commit 0a7a58a

Please sign in to comment.