commit 7792ef59352472cfdcfebc1fb2c0008a7882ae75
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Feb 28 15:24:04 2023 +0000
Apply patch
Revert-revert-ffmx-gfio.patch | 26 ++++++++++++++++++++++++++
gpac.spec | 1 +
2 files changed, 27 insertions(+)
---
diff --git a/Revert-revert-ffmx-gfio.patch b/Revert-revert-ffmx-gfio.patch
new file mode 100644
index 0000000..4bdc4e1
--- /dev/null
+++ b/Revert-revert-ffmx-gfio.patch
@@ -0,0 +1,26 @@
+From 5d6f6d42833de953c4831ea974afed82cffa4e0c Mon Sep 17 00:00:00 2001
+From: Leigh Scott <leigh123linux(a)gmail.com>
+Date: Tue, 28 Feb 2023 13:46:30 +0000
+Subject: [PATCH] Revert "revert ffmx gfio patch"
+
+This reverts commit 70bc8f6877a9651a0fc4c1b14e8cd2bf2f07a068.
+---
+ src/filters/ff_mx.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/filters/ff_mx.c b/src/filters/ff_mx.c
+index 34e5f59e7..96d290177 100644
+--- a/src/filters/ff_mx.c
++++ b/src/filters/ff_mx.c
+@@ -503,7 +503,7 @@ static GF_Err ffmx_close_seg(GF_Filter *filter, GF_FFMuxCtx *ctx,
Bool send_evt_
+ evt.seg_size.is_init = 0;
+ }
+ evt.seg_size.media_range_start = ctx->offset_at_seg_start;
+- evt.seg_size.media_range_end = ctx->muxer->pb ?
(ctx->muxer->pb->written-1) : 0;
++ evt.seg_size.media_range_end = ctx->muxer->pb ?
(ctx->muxer->pb->bytes_written-1) : 0;
+ ctx->offset_at_seg_start = evt.seg_size.media_range_end;
+
+ gf_filter_pid_send_event(pid, &evt);
+--
+2.39.2
+
diff --git a/gpac.spec b/gpac.spec
index 6a6a71c..04ffb87 100644
--- a/gpac.spec
+++ b/gpac.spec
@@ -24,6 +24,7 @@ Source0:
https://github.com/gpac/gpac/archive/v%{version}/gpac-%{version}.ta
#Source0:
https://github.com/gpac/gpac/archive/%{commit}/gpac-%{commit}.tar.gz
Patch0: gpac-doxygen_195.patch
+Patch1: Revert-revert-ffmx-gfio.patch
BuildRequires: SDL2-devel
BuildRequires: a52dec-devel