summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch')
-rw-r--r--gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch b/gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch
index 53b6ad7da2..b8da1e428a 100644
--- a/gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch
+++ b/gnu/packages/patches/ffmpeg-jami-pipewiregrab-source-filter.patch
@@ -72,10 +72,10 @@ index d7db46c2af..87204fec71 100644
extern const AVFilter ff_vsrc_smptebars;
diff --git a/libavfilter/vsrc_pipewiregrab.c b/libavfilter/vsrc_pipewiregrab.c
new file mode 100644
-index 0000000000..ff9c3468ab
+index 0000000000..44d64b1eac
--- /dev/null
+++ b/libavfilter/vsrc_pipewiregrab.c
-@@ -0,0 +1,1375 @@
+@@ -0,0 +1,1376 @@
+/*
+ * PipeWire input grabber (ScreenCast)
+ * Copyright (C) 2024 Savoir-faire Linux, Inc.
@@ -117,8 +117,6 @@ index 0000000000..ff9c3468ab
+#include <sys/mman.h>
+#include <sys/queue.h>
+
-+#include "libavfilter/formats.h"
-+#include "libavfilter/video.h"
+#include "libavutil/internal.h"
+#include "libavutil/mathematics.h"
+#include "libavutil/opt.h"
@@ -129,7 +127,9 @@ index 0000000000..ff9c3468ab
+#include "libavformat/internal.h"
+#include "libavutil/avassert.h"
+#include "avfilter.h"
++#include "formats.h"
+#include "internal.h"
++#include "video.h"
+
+#include <pipewire/pipewire.h>
+#include <pipewire/thread-loop.h>
@@ -671,6 +671,7 @@ index 0000000000..ff9c3468ab
+ memcpy(pw_ctx->current_frame->data[0], sdata, spa_buf->datas[0].chunk->size);
+ pw_ctx->current_frame->width = frame_width;
+ pw_ctx->current_frame->height = frame_height;
++ pw_ctx->current_frame->linesize[0] = spa_buf->datas[0].chunk->stride;
+ pthread_mutex_unlock(&pw_ctx->current_frame_mutex);
+
+ // Cleanup