Zebediah Figura : winegstreamer: Don't set bTemporalCompression for WMF video formats.
Alexandre Julliard
julliard at winehq.org
Tue Nov 2 17:27:44 CDT 2021
Module: wine
Branch: master
Commit: f7b45d419f94a6168e3d9a97fb2df21f448446f1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f7b45d419f94a6168e3d9a97fb2df21f448446f1
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Tue Nov 2 00:13:00 2021 -0500
winegstreamer: Don't set bTemporalCompression 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 | 3 ++-
dlls/wmvcore/tests/wmvcore.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/winegstreamer/quartz_parser.c b/dlls/winegstreamer/quartz_parser.c
index 4cc4795a5ff..e0f82878cea 100644
--- a/dlls/winegstreamer/quartz_parser.c
+++ b/dlls/winegstreamer/quartz_parser.c
@@ -316,7 +316,8 @@ static bool amt_from_wg_format_video(AM_MEDIA_TYPE *mt, const struct wg_format *
mt->subtype = *format_table[format->u.video.format].subtype;
if (wm)
mt->bFixedSizeSamples = TRUE;
- mt->bTemporalCompression = TRUE;
+ else
+ mt->bTemporalCompression = TRUE;
mt->lSampleSize = 1;
mt->formattype = FORMAT_VideoInfo;
mt->cbFormat = sizeof(VIDEOINFOHEADER);
diff --git a/dlls/wmvcore/tests/wmvcore.c b/dlls/wmvcore/tests/wmvcore.c
index fa730c978e3..bc7d044b39b 100644
--- a/dlls/wmvcore/tests/wmvcore.c
+++ b/dlls/wmvcore/tests/wmvcore.c
@@ -626,7 +626,7 @@ static void check_video_type(const WM_MEDIA_TYPE *mt)
ok(IsEqualGUID(&mt->formattype, &FORMAT_VideoInfo), "Got format %s.\n", debugstr_guid(&mt->formattype));
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->bTemporalCompression, "Got temporal compression %d.\n", mt->bTemporalCompression);
ok(!mt->pUnk, "Got pUnk %p.\n", mt->pUnk);
ok(EqualRect(&video_info->rcSource, &rect), "Got source rect %s.\n", wine_dbgstr_rect(&rect));
More information about the wine-cvs
mailing list