Skip to content

Instantly share code, notes, and snippets.

@rdp
Created January 30, 2019 04:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rdp/3a5311bca077fd7fffcdbed02ca1d144 to your computer and use it in GitHub Desktop.
test if libvmaf works ffmpeg from config.log
#include <libvmaf.h>
#include <stdint.h>
long check_compute_vmaf(void) { return (long) compute_vmaf; }
int main(void) { int ret = 0;
ret |= ((intptr_t)check_compute_vmaf) & 0xFFFF;
return ret; }
@rdp
Copy link
Author

rdp commented Jan 30, 2019

./sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc test.c -lvmaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment