all repos — mgba @ dd31a888620ad6e8481a4e688f38dc078e75fc37

mGBA Game Boy Advance Emulator

Test: Switch baselines from png/mkv to zmbv/avi
Vicki Pfau vi@endrift.com
Thu, 23 Jul 2020 01:35:04 -0700
commit

dd31a888620ad6e8481a4e688f38dc078e75fc37

parent

57530a32b471efbfd1dbbc89c22a93119e12f55a

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/platform/test/cinema-main.csrc/platform/test/cinema-main.c

@@ -782,11 +782,11 @@ struct FFmpegEncoder encoder;

struct CInemaStream stream = {0}; char baselineName[PATH_MAX]; - snprintf(baselineName, sizeof(baselineName), "%s" PATH_SEP "baseline.mkv", test->directory); + snprintf(baselineName, sizeof(baselineName), "%s" PATH_SEP "baseline.avi", test->directory); bool exists = access(baselineName, 0) == 0; char tmpBaselineName[PATH_MAX]; - snprintf(tmpBaselineName, sizeof(tmpBaselineName), "%s" PATH_SEP ".baseline.mkv", test->directory); + snprintf(tmpBaselineName, sizeof(tmpBaselineName), "%s" PATH_SEP ".baseline.avi", test->directory); if (video) { FFmpegEncoderInit(&encoder);

@@ -794,8 +794,8 @@ FFmpegDecoderInit(&decoder);

if (rebaseline == CI_R_FAILING || (rebaseline == CI_R_MISSING && !exists)) { FFmpegEncoderSetAudio(&encoder, NULL, 0); - FFmpegEncoderSetVideo(&encoder, "png", 0, 0); - FFmpegEncoderSetContainer(&encoder, "mkv"); + FFmpegEncoderSetVideo(&encoder, "zmbv", 0, 0); + FFmpegEncoderSetContainer(&encoder, "avi"); FFmpegEncoderSetDimensions(&encoder, image.width, image.height); const char* usedFname = baselineName;