Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
set(RESOURCE_FILES
palette.bmp
palette.gif
rgbrgb.ani
rgbrgb.avifs
rgbrgb.gif
rgbrgb.png
Expand Down
9 changes: 8 additions & 1 deletion test/testanimation.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,15 @@ static int SDLCALL testDecodeThirdPartyMetadata(void *args)
return TEST_SKIPPED;
}

IMG_AnimationDecoder *thirdPartyDecoder = IMG_CreateAnimationDecoder("rgbrgb_thirdpartymetadata.webp");
const char *inputImage = "rgbrgb_thirdpartymetadata.webp";
char *inputImagePath = GetTestFilename(inputImage);
if (!inputImagePath) {
SDLTest_LogError("Failed to convert '%s' to absolute path", inputImage);
return TEST_ABORTED;
}
IMG_AnimationDecoder *thirdPartyDecoder = IMG_CreateAnimationDecoder(inputImagePath);
SDLTest_AssertCheck(thirdPartyDecoder != NULL, "IMG_CreateAnimationDecoder");
SDL_free(inputImagePath);
if (thirdPartyDecoder) {
SDL_PropertiesID thirdPartyMetadata = IMG_GetAnimationDecoderProperties(thirdPartyDecoder);
SDLTest_AssertCheck(thirdPartyMetadata != 0, "IMG_GetAnimationDecoderProperties");
Expand Down