Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
12e132e9
Commit
12e132e9
authored
Sep 26, 2011
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Sep 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix support for mpeg layer 1 and 2.
parent
8856ea79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
mpegsplit.c
dlls/quartz/mpegsplit.c
+6
-3
No files found.
dlls/quartz/mpegsplit.c
View file @
12e132e9
...
@@ -128,12 +128,14 @@ static HRESULT parse_header(BYTE *header, LONGLONG *plen, LONGLONG *pduration)
...
@@ -128,12 +128,14 @@ static HRESULT parse_header(BYTE *header, LONGLONG *plen, LONGLONG *pduration)
LONGLONG
duration
;
LONGLONG
duration
;
int
bitrate_index
,
freq_index
,
lsf
=
1
,
mpeg1
,
layer
,
padding
,
bitrate
,
length
;
int
bitrate_index
,
freq_index
,
lsf
=
1
,
mpeg1
,
layer
,
padding
,
bitrate
,
length
;
if
(
header
[
0
]
!=
0xff
)
return
E_INVALIDARG
;
if
(
!
(
header
[
0
]
==
0xff
&&
((
header
[
1
]
>>
5
)
&
0x7
)
==
0x7
&&
if
(
!
(((
header
[
1
]
>>
5
)
&
0x7
)
==
0x7
&&
((
header
[
1
]
>>
1
)
&
0x3
)
!=
0
&&
((
header
[
2
]
>>
4
)
&
0xf
)
!=
0xf
&&
((
header
[
1
]
>>
1
)
&
0x3
)
!=
0
&&
((
header
[
2
]
>>
4
)
&
0xf
)
!=
0xf
&&
((
header
[
2
]
>>
2
)
&
0x3
)
!=
0x3
))
((
header
[
2
]
>>
2
)
&
0x3
)
!=
0x3
))
{
{
FIXME
(
"Not a valid header: %02x:%02x
\n
"
,
header
[
0
],
header
[
1
]);
FIXME
(
"Not a valid header: %02x:%02x
\n
"
,
header
[
1
],
header
[
2
]);
return
E_INVALIDARG
;
return
E_INVALIDARG
;
}
}
...
@@ -147,7 +149,7 @@ static HRESULT parse_header(BYTE *header, LONGLONG *plen, LONGLONG *pduration)
...
@@ -147,7 +149,7 @@ static HRESULT parse_header(BYTE *header, LONGLONG *plen, LONGLONG *pduration)
padding
=
((
header
[
2
]
>>
1
)
&
0x1
);
padding
=
((
header
[
2
]
>>
1
)
&
0x1
);
bitrate
=
tabsel_123
[
lsf
][
layer
-
1
][
bitrate_index
]
*
1000
;
bitrate
=
tabsel_123
[
lsf
][
layer
-
1
][
bitrate_index
]
*
1000
;
if
(
!
bitrate
||
layer
!=
3
)
if
(
!
bitrate
)
{
{
FIXME
(
"Not a valid header: %02x:%02x:%02x:%02x
\n
"
,
header
[
0
],
header
[
1
],
header
[
2
],
header
[
3
]);
FIXME
(
"Not a valid header: %02x:%02x:%02x:%02x
\n
"
,
header
[
0
],
header
[
1
],
header
[
2
],
header
[
3
]);
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
@@ -353,6 +355,7 @@ static HRESULT MPEGSplitter_query_accept(LPVOID iface, const AM_MEDIA_TYPE *pmt)
...
@@ -353,6 +355,7 @@ static HRESULT MPEGSplitter_query_accept(LPVOID iface, const AM_MEDIA_TYPE *pmt)
FIXME
(
"MPEG-1 system streams not yet supported.
\n
"
);
FIXME
(
"MPEG-1 system streams not yet supported.
\n
"
);
else
if
(
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_MPEG1VideoCD
))
else
if
(
IsEqualIID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_MPEG1VideoCD
))
FIXME
(
"MPEG-1 VideoCD streams not yet supported.
\n
"
);
FIXME
(
"MPEG-1 VideoCD streams not yet supported.
\n
"
);
else
FIXME
(
"%s
\n
"
,
debugstr_guid
(
&
pmt
->
subtype
));
return
S_FALSE
;
return
S_FALSE
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment