Zebediah Figura : winegstreamer: Set bFixedSizeSamples for WMF video formats.
Alexandre Julliard
julliard at winehq.org
Tue Nov 2 17:27:43 CDT 2021
Module: wine
Branch: master
Commit: 6cb1d1ec4ffa77bbc2223703b93033bd86730a60
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6cb1d1ec4ffa77bbc2223703b93033bd86730a60
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Tue Nov 2 00:12:59 2021 -0500
winegstreamer: Set bFixedSizeSamples for WMF video formats.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/quartz_parser.c | 2 ++
dlls/wmvcore/tests/wmvcore.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/quartz_parser.c b/dlls/winegstreamer/quartz_parser.c
index 77a186bbb26..4cc4795a5ff 100644
--- a/dlls/winegstreamer/quartz_parser.c
+++ b/dlls/winegstreamer/quartz_parser.c
@@ -314,6 +314,8 @@ static bool amt_from_wg_format_video(AM_MEDIA_TYPE *mt, const struct wg_format *
mt->majortype = MEDIATYPE_Video;
mt->subtype = *format_table[format->u.video.format].subtype;
+ if (wm)
+ mt->bFixedSizeSamples = TRUE;
mt->bTemporalCompression = TRUE;
mt->lSampleSize = 1;
mt->formattype = FORMAT_VideoInfo;
diff --git a/dlls/wmvcore/tests/wmvcore.c b/dlls/wmvcore/tests/wmvcore.c
index 469666161a4..fa730c978e3 100644
--- a/dlls/wmvcore/tests/wmvcore.c
+++ b/dlls/wmvcore/tests/wmvcore.c
@@ -625,7 +625,7 @@ static void check_video_type(const WM_MEDIA_TYPE *mt)
static const RECT rect = {.right = 64, .bottom = 48};
ok(IsEqualGUID(&mt->formattype, &FORMAT_VideoInfo), "Got format %s.\n", debugstr_guid(&mt->formattype));
- todo_wine ok(mt->bFixedSizeSamples == TRUE, "Got fixed size %d.\n", mt->bFixedSizeSamples);
+ ok(mt->bFixedSizeSamples == TRUE, "Got fixed size %d.\n", mt->bFixedSizeSamples);
todo_wine ok(!mt->bTemporalCompression, "Got temporal compression %d.\n", mt->bTemporalCompression);
ok(!mt->pUnk, "Got pUnk %p.\n", mt->pUnk);
More information about the wine-cvs
mailing list