Rémi Bernon : mf/tests: Add todo_wine for newer FFmpeg versions.

Alexandre Julliard julliard at winehq.org
Thu Jul 7 17:02:25 CDT 2022


Module: wine
Branch: master
Commit: 7187965a75ca6abeb512a436bc7fcd84640591fd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7187965a75ca6abeb512a436bc7fcd84640591fd

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Thu Jun 23 16:09:53 2022 +0200

mf/tests: Add todo_wine for newer FFmpeg versions.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>

---

 dlls/mf/tests/mf.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index fd4acf6dfbf..00be50c8494 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -6390,7 +6390,7 @@ static void check_sample_pcm16_(int line, IMFSample *sample, const BYTE *expect_
         if (expect - value + 512 > 1024) break;
     }
 
-    todo_wine_if(todo)
+    todo_wine_if(todo && i < length / 2)
     ok_(__FILE__, line)(i == length, "unexpected buffer data\n");
 
     if (output_file) WriteFile(output_file, buffer, length, &length, NULL);
@@ -7027,6 +7027,9 @@ static void test_wma_decoder(void)
         hr = IMFTransform_ProcessOutput(transform, 0, 1, &output, &status);
 
         winetest_pop_context();
+
+        /* some FFmpeg version request more input to complete decoding */
+        if (hr == MF_E_TRANSFORM_NEED_MORE_INPUT && i == 2) break;
     }
     todo_wine
     ok(wmadec_data_len == 0, "missing %#lx bytes\n", wmadec_data_len);




More information about the wine-cvs mailing list