diff options
author | nathansmith <nathansmith@posteo.com> | 2025-05-03 02:35:57 +0000 |
---|---|---|
committer | nathansmith <nathansmith@posteo.com> | 2025-05-03 02:35:57 +0000 |
commit | 8754798edb5c8825514d1823bb29b260dd5eb740 (patch) | |
tree | a2479680212d325d64a7f4886aab2a62b7a7f528 /src/ffmpeg.c | |
parent | 2d2f143d248ef9f173f711108feb770efdfe7d21 (diff) | |
download | sldj-main.tar.gz sldj-main.tar.bz2 sldj-main.zip |
Diffstat (limited to 'src/ffmpeg.c')
-rw-r--r-- | src/ffmpeg.c | 7 |
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) { |