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
1e942d6b
Commit
1e942d6b
authored
Jun 25, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi32: Read the stream header in order to determine its type.
parent
4d2a2860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
mmoutput.c
dlls/mciavi32/mmoutput.c
+11
-8
No files found.
dlls/mciavi32/mmoutput.c
View file @
1e942d6b
...
...
@@ -28,8 +28,6 @@ static BOOL MCIAVI_GetInfoAudio(WINE_MCIAVI* wma, const MMCKINFO* mmckList, MMCK
{
MMCKINFO
mmckInfo
;
mmioRead
(
wma
->
hFile
,
(
LPSTR
)
&
wma
->
ash_audio
,
sizeof
(
wma
->
ash_audio
));
TRACE
(
"ash.fccType='%c%c%c%c'
\n
"
,
LOBYTE
(
LOWORD
(
wma
->
ash_audio
.
fccType
)),
HIBYTE
(
LOWORD
(
wma
->
ash_audio
.
fccType
)),
LOBYTE
(
HIWORD
(
wma
->
ash_audio
.
fccType
)),
...
...
@@ -91,8 +89,6 @@ static BOOL MCIAVI_GetInfoVideo(WINE_MCIAVI* wma, const MMCKINFO* mmckList, MMCK
{
MMCKINFO
mmckInfo
;
mmioRead
(
wma
->
hFile
,
(
LPSTR
)
&
wma
->
ash_video
,
sizeof
(
wma
->
ash_video
));
TRACE
(
"ash.fccType='%c%c%c%c'
\n
"
,
LOBYTE
(
LOWORD
(
wma
->
ash_video
.
fccType
)),
HIBYTE
(
LOWORD
(
wma
->
ash_video
.
fccType
)),
LOBYTE
(
HIWORD
(
wma
->
ash_video
.
fccType
)),
...
...
@@ -261,6 +257,7 @@ BOOL MCIAVI_GetInfo(WINE_MCIAVI* wma)
MMCKINFO
mmckHead
;
MMCKINFO
mmckList
;
MMCKINFO
mmckInfo
;
AVIStreamHeader
strh
;
struct
AviListBuild
alb
;
DWORD
stream_n
;
...
...
@@ -320,34 +317,40 @@ BOOL MCIAVI_GetInfo(WINE_MCIAVI* wma)
continue
;
}
TRACE
(
"Stream #%d fccType %4.4s
\n
"
,
stream_n
,
(
LPSTR
)
&
mmckStream
.
fccType
);
mmioRead
(
wma
->
hFile
,
(
LPSTR
)
&
strh
,
sizeof
(
strh
));
TRACE
(
"Stream #%d fccType %4.4s
\n
"
,
stream_n
,
(
LPSTR
)
&
strh
.
fccType
);
if
(
mmckStream
.
fccType
==
streamtypeVIDEO
)
if
(
strh
.
fccType
==
streamtypeVIDEO
)
{
TRACE
(
"found video stream
\n
"
);
if
(
wma
->
inbih
)
WARN
(
"ignoring another video stream
\n
"
);
else
{
wma
->
ash_audio
=
strh
;
if
(
!
MCIAVI_GetInfoVideo
(
wma
,
&
mmckList
,
&
mmckStream
))
return
FALSE
;
wma
->
video_stream_n
=
stream_n
;
}
}
else
if
(
mmckStream
.
fccType
==
streamtypeAUDIO
)
else
if
(
strh
.
fccType
==
streamtypeAUDIO
)
{
TRACE
(
"found audio stream
\n
"
);
if
(
wma
->
lpWaveFormat
)
WARN
(
"ignoring another audio stream
\n
"
);
else
{
wma
->
ash_video
=
strh
;
if
(
!
MCIAVI_GetInfoAudio
(
wma
,
&
mmckList
,
&
mmckStream
))
return
FALSE
;
wma
->
audio_stream_n
=
stream_n
;
}
}
else
TRACE
(
"Unsupported stream type %4.4s
\n
"
,
(
LPSTR
)
&
mmckStream
.
fccType
);
TRACE
(
"Unsupported stream type %4.4s
\n
"
,
(
LPSTR
)
&
strh
.
fccType
);
mmioAscend
(
wma
->
hFile
,
&
mmckList
,
0
);
}
...
...
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