[3/3] quartz: Recognize MPEG2 program streams.
Sebastian Lackner
sebastian at fds-team.de
Thu Apr 28 00:59:41 CDT 2016
From: Michael Müller <michael at fds-team.de>
Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
dlls/quartz/regsvr.c | 5 +++++
dlls/quartz/tests/avisplitter.c | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/dlls/quartz/regsvr.c b/dlls/quartz/regsvr.c
index b0f1e9a..196e064 100644
--- a/dlls/quartz/regsvr.c
+++ b/dlls/quartz/regsvr.c
@@ -818,6 +818,11 @@ static struct regsvr_mediatype_parsing const mediatype_parsing_list[] = {
"0, 10, FFFFFF00000080808080, 494433000000000000",
NULL }
},
+ { &MEDIATYPE_Stream,
+ &MEDIASUBTYPE_MPEG2_PROGRAM,
+ { "0, 5, FFFFFFFFC0, 000001BA40",
+ NULL }
+ },
{ &MEDIATYPE_Stream,
&MEDIASUBTYPE_QTMovie,
{ "4, 4, , 6d646174",
diff --git a/dlls/quartz/tests/avisplitter.c b/dlls/quartz/tests/avisplitter.c
index 4ed4142..369c6d6 100644
--- a/dlls/quartz/tests/avisplitter.c
+++ b/dlls/quartz/tests/avisplitter.c
@@ -187,6 +187,12 @@ static void test_filesourcefilter(void)
12,
&MEDIASUBTYPE_Avi,
},
+ {
+ "MPEG2",
+ "\x00\x00\x01\xBA\x40",
+ 5,
+ &MEDIASUBTYPE_MPEG2_PROGRAM,
+ },
};
WCHAR path[MAX_PATH], temp[MAX_PATH];
IFileSourceFilter *filesource;
--
2.8.0
More information about the wine-patches
mailing list