[PATCH 1/3] evr/mixer: Fix number of substreams in CreateVideoProcessor().
Nikolay Sivov
nsivov at codeweavers.com
Tue Nov 2 14:05:37 CDT 2021
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/evr/mixer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/evr/mixer.c b/dlls/evr/mixer.c
index 30b4ed31b3f..3a2b6830782 100644
--- a/dlls/evr/mixer.c
+++ b/dlls/evr/mixer.c
@@ -35,7 +35,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(evr);
-#define MAX_MIXER_INPUT_STREAMS 16
+#define MAX_MIXER_INPUT_SUBSTREAMS (15)
+#define MAX_MIXER_INPUT_STREAMS (MAX_MIXER_INPUT_SUBSTREAMS + 1)
struct input_stream
{
@@ -932,7 +933,7 @@ static HRESULT WINAPI video_mixer_transform_SetOutputType(IMFTransform *iface, D
rt_format = subtype.Data1;
if (SUCCEEDED(hr = IDirectXVideoProcessorService_CreateVideoProcessor(service, &mixer->output.rt_formats[i].device,
- &video_desc, rt_format, MAX_MIXER_INPUT_STREAMS, &mixer->processor)))
+ &video_desc, rt_format, MAX_MIXER_INPUT_SUBSTREAMS, &mixer->processor)))
{
if (mixer->output.media_type)
IMFMediaType_Release(mixer->output.media_type);
--
2.33.0
More information about the wine-devel
mailing list