28 Sep
2022
28 Sep
'22
9:38 a.m.
Rémi Bernon (@rbernon) commented about dlls/winegstreamer/resampler.c:
*type = NULL;
if (index >= (output ? 2 : 1) * ARRAY_SIZE(audio_formats)) - return MF_E_NO_MORE_TYPES; + { + hr = MF_E_NO_MORE_TYPES; + goto done; + } subtype = audio_formats[index % ARRAY_SIZE(audio_formats)];
Probably better to move that `MFCreateMediaType` down after the subtype is checked. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/948#note_9526