#include <stdio.h>
#include <rav1e/rav1e.h>

int main(void) {
    const char *version;

    // Test that we can call rav1e C API functions
    version = rav1e_version_short();

    if (version == NULL) {
        fprintf(stderr, "Failed to get rav1e version\n");
        return 1;
    }

    printf("rav1e version: %s\n", version);
    printf("librav1e0.8 link test passed\n");

    return 0;
}
