From 8754798edb5c8825514d1823bb29b260dd5eb740 Mon Sep 17 00:00:00 2001 From: nathansmith Date: Fri, 2 May 2025 20:35:57 -0600 Subject: Borded of this project tbh --- src/ffmpeg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ffmpeg.c') 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) { -- cgit v1.2.3