aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffmpeg.c
diff options
context:
space:
mode:
authornathansmith <nathansmith@posteo.com>2025-05-03 02:35:57 +0000
committernathansmith <nathansmith@posteo.com>2025-05-03 02:35:57 +0000
commit8754798edb5c8825514d1823bb29b260dd5eb740 (patch)
treea2479680212d325d64a7f4886aab2a62b7a7f528 /src/ffmpeg.c
parent2d2f143d248ef9f173f711108feb770efdfe7d21 (diff)
downloadsldj-main.tar.gz
sldj-main.tar.bz2
sldj-main.zip
Borded of this project tbhHEADmain
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)
{