File obs-studio-uninitialized_var.patch of Package obs-studio

diff -Pdpru obs-studio-31.0.0.orig/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c obs-studio-31.0.0/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c
--- obs-studio-31.0.0.orig/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c	2024-12-07 00:21:55.000000000 +0100
+++ obs-studio-31.0.0/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c	2024-12-07 12:55:43.494755042 +0100
@@ -678,7 +678,7 @@ static void *ffmpeg_mux_io_thread(void *
 	// ffmpeg, then we flush the chunk. next_seek_position is the actual
 	// offset we should seek to when we write the chunk.
 	uint64_t current_seek_position = 0;
-	uint64_t next_seek_position;
+	uint64_t next_seek_position = 0;
 
 	for (;;) {
 		// Wait for ffmpeg to write data to the buffer
openSUSE Build Service is sponsored by