13 lines
453 B
C
13 lines
453 B
C
#include <stdio.h>
|
|
#include <dlfcn.h>
|
|
static int (*old) (void *a, void *b) = NULL;
|
|
int dav1d_open (void *a, void *b) {
|
|
int max_frame_delay = *(((int*)b)+1);
|
|
if (max_frame_delay == 1) {
|
|
if (!old) old = dlsym(RTLD_NEXT, "dav1d_open");
|
|
printf("dav1d_open passthrough, max_frame_delay=%d\n", max_frame_delay);
|
|
return old(a, b);
|
|
}
|
|
printf("dav1d_open force -1, max_frame_delay=%d\n", max_frame_delay);
|
|
return -1;
|
|
}
|