Module: wine Branch: master Commit: 1953d1e774d9cd79b7b7ac49159a3aef734cd8c6 URL: https://gitlab.winehq.org/wine/wine/-/commit/1953d1e774d9cd79b7b7ac49159a3ae...
Author: Alfred Agrell floating@muncher.se Date: Wed Jun 19 17:10:48 2024 +0200
mf/tests: Clobber the alignment and bytes per second, to test if the DMO fixes it.
---
dlls/mf/tests/transform.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/mf/tests/transform.c b/dlls/mf/tests/transform.c index 38e31af97c1..6aff6838a80 100644 --- a/dlls/mf/tests/transform.c +++ b/dlls/mf/tests/transform.c @@ -3585,6 +3585,8 @@ static void test_wma_decoder_dmo_output_type(void) good_output_type = (void *)buffer_good_output; bad_output_type = (void *)buffer_bad_output; init_dmo_media_type_audio(input_type, input_subtype, channel_count, rate, 16); + ((WAVEFORMATEX *)(input_type + 1))->nBlockAlign = 640; + ((WAVEFORMATEX *)(input_type + 1))->nAvgBytesPerSec = 2000; init_dmo_media_type_audio(good_output_type, &MEDIASUBTYPE_PCM, channel_count, rate, bits_per_sample); memset(bad_output_type, 0, sizeof(buffer_bad_output));