diff options
Diffstat (limited to 'vhook')
-rw-r--r-- | vhook/fish.c | 3 | ||||
-rw-r--r-- | vhook/ppm.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/vhook/fish.c b/vhook/fish.c index c710526b15..5a274a848e 100644 --- a/vhook/fish.c +++ b/vhook/fish.c @@ -44,6 +44,7 @@ #include "framehook.h" #include "dsputil.h" +#include "avformat.h" #define SCALEBITS 10 #define ONE_HALF (1 << (SCALEBITS - 1)) @@ -337,7 +338,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, FILE *f; char fname[256]; - snprintf(fname, sizeof(fname), "%s/fishimg%ld_%lld.ppm", ci->dir, time(0), pts); + snprintf(fname, sizeof(fname), "%s/fishimg%ld_%lld.ppm", ci->dir, (long)(av_gettime() / 1000000), pts); f = fopen(fname, "w"); if (f) { fprintf(f, "P6 %d %d 255\n", width, height); diff --git a/vhook/ppm.c b/vhook/ppm.c index 8e48dd9574..45e7208788 100644 --- a/vhook/ppm.c +++ b/vhook/ppm.c @@ -24,6 +24,7 @@ #include <sys/wait.h> #include <ctype.h> #include "framehook.h" +#include "avformat.h" /** Bi-directional pipe structure. */ |