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
9988ae35
Commit
9988ae35
authored
Nov 03, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Sign-compare warnings fix.
parent
ac9e8327
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
avisplit.c
dlls/quartz/avisplit.c
+12
-11
No files found.
dlls/quartz/avisplit.c
View file @
9988ae35
...
...
@@ -403,7 +403,7 @@ static HRESULT AVISplitter_first_request(LPVOID iface)
{
AVISplitterImpl
*
This
=
(
AVISplitterImpl
*
)
iface
;
HRESULT
hr
=
S_OK
;
int
x
;
DWORD
x
;
IMediaSample
*
sample
=
NULL
;
BOOL
have_sample
=
FALSE
;
...
...
@@ -519,7 +519,8 @@ static HRESULT AVISplitter_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
static
HRESULT
AVISplitter_ProcessIndex
(
AVISplitterImpl
*
This
,
AVISTDINDEX
**
index
,
LONGLONG
qwOffset
,
DWORD
cb
)
{
AVISTDINDEX
*
pIndex
;
int
x
,
rest
;
DWORD
x
;
int
rest
;
*
index
=
NULL
;
if
(
cb
<
sizeof
(
AVISTDINDEX
))
...
...
@@ -575,7 +576,7 @@ static HRESULT AVISplitter_ProcessOldIndex(AVISplitterImpl *This)
ULONGLONG
mov_pos
=
BYTES_FROM_MEDIATIME
(
This
->
CurrentChunkOffset
)
-
sizeof
(
DWORD
);
AVIOLDINDEX
*
pAviOldIndex
=
This
->
oldindex
;
int
relative
=
-
1
;
int
x
;
DWORD
x
;
for
(
x
=
0
;
x
<
pAviOldIndex
->
cb
/
sizeof
(
pAviOldIndex
->
aIndex
[
0
]);
++
x
)
{
...
...
@@ -771,7 +772,7 @@ static HRESULT AVISplitter_ProcessStreamList(AVISplitterImpl * This, const BYTE
case
ckidAVISUPERINDEX
:
{
const
AVISUPERINDEX
*
pIndex
=
(
const
AVISUPERINDEX
*
)
pChunk
;
int
x
;
DWORD
x
;
long
rest
=
pIndex
->
cb
-
sizeof
(
AVISUPERINDEX
)
+
sizeof
(
RIFFCHUNK
)
+
sizeof
(
pIndex
->
aIndex
[
0
])
*
ANYSIZE_ARRAY
;
if
(
pIndex
->
cb
<
sizeof
(
AVISUPERINDEX
)
-
sizeof
(
RIFFCHUNK
))
...
...
@@ -886,7 +887,7 @@ static HRESULT AVISplitter_ProcessODML(AVISplitterImpl * This, const BYTE * pDat
static
HRESULT
AVISplitter_InitializeStreams
(
AVISplitterImpl
*
This
)
{
int
x
;
unsigned
int
x
;
if
(
This
->
oldindex
)
{
...
...
@@ -910,7 +911,7 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This)
FIXME
(
"Stream id %s ignored
\n
"
,
debugstr_an
((
char
*
)
&
This
->
oldindex
->
aIndex
[
n
].
dwChunkId
,
4
));
continue
;
}
if
(
This
->
streams
[
streamId
].
pos
==
~
0
)
if
(
This
->
streams
[
streamId
].
pos
==
~
0
U
)
This
->
streams
[
streamId
].
pos
=
n
;
if
(
This
->
streams
[
streamId
].
streamheader
.
dwSampleSize
)
...
...
@@ -943,7 +944,7 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This)
for
(
x
=
0
;
x
<
This
->
Parser
.
cStreams
;
++
x
)
{
StreamData
*
stream
=
This
->
streams
+
x
;
int
y
;
DWORD
y
;
DWORD64
frames
=
0
;
stream
->
seek
=
1
;
...
...
@@ -956,7 +957,7 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This)
{
if
(
stream
->
streamheader
.
dwSampleSize
)
{
int
z
;
DWORD
z
;
for
(
z
=
0
;
z
<
stream
->
stdindex
[
y
]
->
nEntriesInUse
;
++
z
)
{
...
...
@@ -999,7 +1000,7 @@ static HRESULT AVISplitter_InputPin_PreConnect(IPin * iface, IPin * pConnectPin,
BYTE
*
pBuffer
;
RIFFCHUNK
*
pCurrentChunk
;
LONGLONG
total
,
avail
;
int
x
;
ULONG
x
;
DWORD
indexes
;
AVISplitterImpl
*
pAviSplit
=
(
AVISplitterImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
...
...
@@ -1213,7 +1214,7 @@ static HRESULT AVISplitter_Flush(LPVOID iface)
static
HRESULT
AVISplitter_Disconnect
(
LPVOID
iface
)
{
AVISplitterImpl
*
This
=
iface
;
int
x
;
ULONG
x
;
/* TODO: Remove other memory that's allocated during connect */
CoTaskMemFree
(
This
->
oldindex
);
...
...
@@ -1221,7 +1222,7 @@ static HRESULT AVISplitter_Disconnect(LPVOID iface)
for
(
x
=
0
;
x
<
This
->
Parser
.
cStreams
;
++
x
)
{
int
i
;
DWORD
i
;
StreamData
*
stream
=
&
This
->
streams
[
x
];
...
...
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