evr/mixer: Fix number of substreams in CreateVideoProcessor().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5f9bcb13b7
commit
805b3e465f
|
@ -35,7 +35,8 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(evr);
|
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
|
struct input_stream
|
||||||
{
|
{
|
||||||
|
@ -932,7 +933,7 @@ static HRESULT WINAPI video_mixer_transform_SetOutputType(IMFTransform *iface, D
|
||||||
rt_format = subtype.Data1;
|
rt_format = subtype.Data1;
|
||||||
|
|
||||||
if (SUCCEEDED(hr = IDirectXVideoProcessorService_CreateVideoProcessor(service, &mixer->output.rt_formats[i].device,
|
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)
|
if (mixer->output.media_type)
|
||||||
IMFMediaType_Release(mixer->output.media_type);
|
IMFMediaType_Release(mixer->output.media_type);
|
||||||
|
|
Loading…
Reference in New Issue