aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffmpeg.c')
-rw-r--r--src/ffmpeg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ffmpeg.c b/src/ffmpeg.c
index 21692d0..5479ef5 100644
--- a/src/ffmpeg.c
+++ b/src/ffmpeg.c
@@ -8,9 +8,10 @@
#include "ffmpeg.h"
FFMPEG* ffmpegStart(const char* filename, uint32_t width, uint32_t height,
-uint32_t fps)
+ uint32_t fps)
{
int pipefd[2];
+
if (pipe(pipefd) < 0)
{
@@ -94,8 +95,8 @@ uint32_t fps)
return ffmpeg;
}
-int ffmpegSendFrame(FFMPEG* ffmpeg, void* data, uint32_t width, uint32_t
-height)
+int ffmpegSendFrame(FFMPEG* ffmpeg, void* data, uint32_t width,
+ uint32_t height)
{
for (uint32_t y = height; y > 0; --y)
{