aboutsummaryrefslogtreecommitdiff
path: root/vhook/fish.c
diff options
context:
space:
mode:
authorFrançois Revol2005-02-24 22:07:10 +0000
committerFrançois Revol2005-02-24 22:07:10 +0000
commitcf344ec72cd3eac1075b7571b75dff625a9af3b0 (patch)
tree9c10f0026e50e6d9b2be80d07302336a12d279ca /vhook/fish.c
parent88730be65153f4a59916d971842fdaed3e0fd72b (diff)
get fish to compile (time() forbidden), pstrcat not declared from ppm.c
Originally committed as revision 3978 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/fish.c')
-rw-r--r--vhook/fish.c3
1 files changed, 2 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);