From 6dbab0f2e5a01df150d6bb7437af4b9628cac4c1 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 29 Mar 2023 20:24:09 +1100 Subject: [PATCH] Updated mfplat-streaming-support patchset Fixes a crash on some videos. --- ...port-streams-backwards-in-media-sour.patch | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/patches/mfplat-streaming-support/0025-winegstreamer-Report-streams-backwards-in-media-sour.patch b/patches/mfplat-streaming-support/0025-winegstreamer-Report-streams-backwards-in-media-sour.patch index ed39bb6a..6940bc26 100644 --- a/patches/mfplat-streaming-support/0025-winegstreamer-Report-streams-backwards-in-media-sour.patch +++ b/patches/mfplat-streaming-support/0025-winegstreamer-Report-streams-backwards-in-media-sour.patch @@ -1,18 +1,18 @@ -From e1c18d8fda84e300fc6ae2b90bf3770c4f2bb2c7 Mon Sep 17 00:00:00 2001 +From ca64589b2447f378651f19eb15672f27c2133493 Mon Sep 17 00:00:00 2001 From: Derek Lesho Date: Fri, 19 Mar 2021 17:01:54 -0400 Subject: [PATCH] winegstreamer: Report streams backwards in media source. Signed-off-by: Derek Lesho --- - dlls/winegstreamer/media_source.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + dlls/winegstreamer/media_source.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c -index 542189b28f5..a9e97f545dd 100644 +index 1b57d8bfba8..4d2a29a6bc1 100644 --- a/dlls/winegstreamer/media_source.c +++ b/dlls/winegstreamer/media_source.c -@@ -1496,7 +1496,7 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_ +@@ -1497,7 +1497,7 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_ DWORD len; char *str; @@ -21,6 +21,15 @@ index 542189b28f5..a9e97f545dd 100644 for (j = 0; j < ARRAY_SIZE(tags); ++j) { +@@ -1510,7 +1510,7 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_ + } + strW = malloc(len * sizeof(*strW)); + if (MultiByteToWideChar(CP_UTF8, 0, str, -1, strW, len)) +- IMFStreamDescriptor_SetString(descriptors[i], tags[j].mf_attr, strW); ++ IMFStreamDescriptor_SetString(descriptors[object->stream_count - 1 - i], tags[j].mf_attr, strW); + free(strW); + free(str); + } -- -2.38.1 +2.40.0