Yuxuan Shui (@yshui) commented about dlls/winegstreamer/wm_reader.c:
+ FIXME("%d %d ~ %d %d\n", current_width, current_height, incoming_width, incoming_height); + }
- default: - hr = NS_E_INCOMPATIBLE_FORMAT; - break; + if (IsEqualGUID(&stream->format.majortype, &MEDIATYPE_Audio) && + IsEqualGUID(&stream->format.formattype, &FORMAT_WaveFormatEx) && + IsEqualGUID(&mt->formattype, &FORMAT_WaveFormatEx)) + { + /* Reject formats that will upsample the audio - decoder might accept them */ + WAVEFORMATEX *current = (WAVEFORMATEX *)stream->format.pbFormat; + WAVEFORMATEX *incoming = (WAVEFORMATEX *)mt->pbFormat; + if (incoming->nChannels > current->nChannels) + { + hr = NS_E_AUDIO_CODEC_NOT_INSTALLED; TODO: ditto.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9567#note_123437