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
e55a4b63
Commit
e55a4b63
authored
Mar 16, 2004
by
Christian Costa
Committed by
Alexandre Julliard
Mar 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle avi files with non standard video stream names.
parent
c2adec0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
mmoutput.c
dlls/winmm/mciavi/mmoutput.c
+13
-1
No files found.
dlls/winmm/mciavi/mmoutput.c
View file @
e55a4b63
...
...
@@ -166,6 +166,7 @@ static BOOL MCIAVI_AddFrame(WINE_MCIAVI* wma, LPMMCKINFO mmck,
{
const
BYTE
*
p
;
DWORD
stream_n
;
DWORD
twocc
;
if
(
mmck
->
ckid
==
ckidAVIPADDING
)
return
TRUE
;
...
...
@@ -183,7 +184,18 @@ static BOOL MCIAVI_AddFrame(WINE_MCIAVI* wma, LPMMCKINFO mmck,
TRACE
(
"ckid %4.4s (stream #%ld)
\n
"
,
(
LPSTR
)
&
mmck
->
ckid
,
stream_n
);
switch
(
TWOCCFromFOURCC
(
mmck
->
ckid
))
{
/* Some (rare?) AVI files have video streams name XXYY where XX = stream number and YY = TWOCC
* of the last 2 characters of the biCompression member of the BITMAPINFOHEADER structure.
* Ex: fccHandler = IV32 & biCompression = IV32 => stream name = XX32
* fccHandler = MSVC & biCompression = CRAM => stream name = XXAM
* Another possibility is that these TWOCC are simply ignored.
* Default to cktypeDIBcompressed when this case happens.
*/
twocc
=
TWOCCFromFOURCC
(
mmck
->
ckid
);
if
(
twocc
==
TWOCCFromFOURCC
(
wma
->
inbih
->
biCompression
))
twocc
=
cktypeDIBcompressed
;
switch
(
twocc
)
{
case
cktypeDIBbits
:
case
cktypeDIBcompressed
:
case
cktypePALchange
:
...
...
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