mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
get fish to compile (time() forbidden), pstrcat not declared from ppm.c
Originally committed as revision 3978 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
88730be651
commit
cf344ec72c
@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
#include "framehook.h"
|
#include "framehook.h"
|
||||||
#include "dsputil.h"
|
#include "dsputil.h"
|
||||||
|
#include "avformat.h"
|
||||||
|
|
||||||
#define SCALEBITS 10
|
#define SCALEBITS 10
|
||||||
#define ONE_HALF (1 << (SCALEBITS - 1))
|
#define ONE_HALF (1 << (SCALEBITS - 1))
|
||||||
@ -337,7 +338,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
|
|||||||
FILE *f;
|
FILE *f;
|
||||||
char fname[256];
|
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");
|
f = fopen(fname, "w");
|
||||||
if (f) {
|
if (f) {
|
||||||
fprintf(f, "P6 %d %d 255\n", width, height);
|
fprintf(f, "P6 %d %d 255\n", width, height);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "framehook.h"
|
#include "framehook.h"
|
||||||
|
#include "avformat.h"
|
||||||
|
|
||||||
/** Bi-directional pipe structure.
|
/** Bi-directional pipe structure.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user