From df37ef759900a5f250ae20bb75d71122bc7b5ba6 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Thu, 17 Dec 2020 09:37:18 +1100 Subject: [PATCH] Updated mfplat-streaming-support patchset Restore file. --- ...pport-eAVEncH264VProfile_Constrained.patch | 35 +++++++++++++++++++ patches/patchinstall.sh | 3 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 patches/mfplat-streaming-support/0060-winegstreamer-Support-eAVEncH264VProfile_Constrained.patch diff --git a/patches/mfplat-streaming-support/0060-winegstreamer-Support-eAVEncH264VProfile_Constrained.patch b/patches/mfplat-streaming-support/0060-winegstreamer-Support-eAVEncH264VProfile_Constrained.patch new file mode 100644 index 00000000..953634ff --- /dev/null +++ b/patches/mfplat-streaming-support/0060-winegstreamer-Support-eAVEncH264VProfile_Constrained.patch @@ -0,0 +1,35 @@ +From e8cf102151b0fdcd5ccf54ad207e1256e3725b3c Mon Sep 17 00:00:00 2001 +From: Alistair Leslie-Hughes +Date: Sun, 30 Aug 2020 12:37:59 +1000 +Subject: [PATCH] winegstreamer: Support eAVEncH264VProfile_ConstrainedBase + media type + +Game: American Fugitive +--- + dlls/winegstreamer/mfplat.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/dlls/winegstreamer/mfplat.c b/dlls/winegstreamer/mfplat.c +index 21d44c498b8..7e482b77863 100644 +--- a/dlls/winegstreamer/mfplat.c ++++ b/dlls/winegstreamer/mfplat.c +@@ -835,6 +835,8 @@ static IMFMediaType* transform_to_media_type(GstCaps *caps) + IMFMediaType_SetUINT32(media_type, &MF_MT_MPEG2_PROFILE, eAVEncH264VProfile_High); + else if (!(strcmp(profile, "high-4:4:4"))) + IMFMediaType_SetUINT32(media_type, &MF_MT_MPEG2_PROFILE, eAVEncH264VProfile_444); ++ else if (!(strcmp(profile, "constrained-baseline"))) ++ IMFMediaType_SetUINT32(media_type, &MF_MT_MPEG2_PROFILE, eAVEncH264VProfile_ConstrainedBase); + else + FIXME("Unrecognized profile %s\n", profile); + } +@@ -1274,6 +1276,7 @@ GstCaps *caps_from_mf_media_type(IMFMediaType *type) + case eAVEncH264VProfile_Main: profile = "main"; break; + case eAVEncH264VProfile_High: profile = "high"; break; + case eAVEncH264VProfile_444: profile = "high-4:4:4"; break; ++ case eAVEncH264VProfile_ConstrainedBase: profile = "constrained-baseline"; break; + default: FIXME("Unknown profile %u\n", h264_profile); + } + if (profile) +-- +2.28.0 + diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index e318cc04..61f586ab 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -51,7 +51,7 @@ usage() # Get the upstream commit sha upstream_commit() { - echo "79e2672858c1643d12c9a2b2b179b001da568029" + echo "ef876fc54e207344b5809f40a59e3d5d610a6fda" } # Show version information @@ -2847,6 +2847,7 @@ if test "$enable_mfplat_streaming_support" -eq 1; then patch_apply mfplat-streaming-support/0049-Revert-Improve-tests.patch patch_apply mfplat-streaming-support/0050-winegstreamer-Introduce-MPEG-4-Section-2-video-decod.patch patch_apply mfplat-streaming-support/0051-winegstreamer-Introduce-WMA-audio-decoder.patch + patch_apply mfplat-streaming-support/0060-winegstreamer-Support-eAVEncH264VProfile_Constrained.patch fi # Patchset mmsystem.dll16-MIDIHDR_Refcount