MCPcopy Create free account
hub / github.com/Motion-Project/motion / ffmpeg_timelapse_append

Function ffmpeg_timelapse_append

src/ffmpeg.c:101–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static int ffmpeg_timelapse_append(struct ffmpeg *ffmpeg, AVPacket *pkt)
102{
103 FILE *file;
104
105 file = fopen(ffmpeg->filename, "abe");
106 if (!file) {
107 return -1;
108 }
109
110 fwrite(pkt->data, 1, pkt->size,file);
111
112 fclose(file);
113
114 return 0;
115}
116
117#if ( MYFFVER < 58000)
118/* TODO Determine if this is even needed for old versions. Per

Callers 1

ffmpeg_put_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected