* [Buildroot] [PATCH 1/1] package/bento4: Add ism segfault patch
@ 2021-12-28 15:01 Bernd Kuhls
2021-12-28 20:39 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2021-12-28 15:01 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
...ault-in-AP4_LinearReader-ProcessMoof.patch | 27 +++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 package/bento4/0016-Fix-segfault-in-AP4_LinearReader-ProcessMoof.patch
diff --git a/package/bento4/0016-Fix-segfault-in-AP4_LinearReader-ProcessMoof.patch b/package/bento4/0016-Fix-segfault-in-AP4_LinearReader-ProcessMoof.patch
new file mode 100644
index 0000000000..cbcc62f982
--- /dev/null
+++ b/package/bento4/0016-Fix-segfault-in-AP4_LinearReader-ProcessMoof.patch
@@ -0,0 +1,27 @@
+From e5b37c1e0a7a84fdc7b403c5e30a5e93706104b8 Mon Sep 17 00:00:00 2001
+From: Dobroslaw Kijowski <dobo90@gmail.com>
+Date: Tue, 19 Oct 2021 14:17:11 +0200
+Subject: [PATCH] Fix segfault in Ap4LinearReader ProcessMoof
+
+Downloaded from https://github.com/xbmc/inputstream.adaptive/pull/856
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ Source/C++/Core/Ap4LinearReader.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Source/C++/Core/Ap4LinearReader.cpp b/Source/C++/Core/Ap4LinearReader.cpp
+index 61c3a9d..2464865 100644
+--- a/Source/C++/Core/Ap4LinearReader.cpp
++++ b/Source/C++/Core/Ap4LinearReader.cpp
+@@ -329,7 +329,7 @@ AP4_LinearReader::ProcessMoof(AP4_ContainerAtom* moof,
+ tracker->m_SampleTable = NULL;
+ tracker->m_NextSampleIndex = 0;
+ for (unsigned int j=0; j<ids.ItemCount(); j++) {
+- if (ids[j] == tracker->m_Track->GetId()) {
++ if (ids.ItemCount()==1 || ids[j] == tracker->m_Track->GetId()) {
+ AP4_FragmentSampleTable* sample_table = NULL;
+ result = m_Fragment->CreateSampleTable(&m_Movie,
+ ids[j],
+--
+2.33.1
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/bento4: Add ism segfault patch
2021-12-28 15:01 [Buildroot] [PATCH 1/1] package/bento4: Add ism segfault patch Bernd Kuhls
@ 2021-12-28 20:39 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-12-28 20:39 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On Tue, 28 Dec 2021 16:01:20 +0100
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> ...ault-in-AP4_LinearReader-ProcessMoof.patch | 27 +++++++++++++++++++
> 1 file changed, 27 insertions(+)
> create mode 100644 package/bento4/0016-Fix-segfault-in-AP4_LinearReader-ProcessMoof.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-28 20:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 15:01 [Buildroot] [PATCH 1/1] package/bento4: Add ism segfault patch Bernd Kuhls
2021-12-28 20:39 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.