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
2127f72f
Commit
2127f72f
authored
Aug 31, 2015
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Replace four occurrences of 1 << 31 by 1u << 31 to avoid shift overflow.
parent
7164fde4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
avisplit.c
dlls/quartz/avisplit.c
+4
-4
No files found.
dlls/quartz/avisplit.c
View file @
2127f72f
...
...
@@ -203,7 +203,7 @@ static HRESULT AVISplitter_next_request(AVISplitterImpl *This, DWORD streamnumbe
++
stream
->
index_next
;
}
rtSampleStop
=
rtSampleStart
+
MEDIATIME_FROM_BYTES
(
entry
->
dwSize
&
~
(
1
<<
31
));
rtSampleStop
=
rtSampleStart
+
MEDIATIME_FROM_BYTES
(
entry
->
dwSize
&
~
(
1
u
<<
31
));
TRACE
(
"offset(%u) size(%u)
\n
"
,
(
DWORD
)
BYTES_FROM_MEDIATIME
(
rtSampleStart
),
(
DWORD
)
BYTES_FROM_MEDIATIME
(
rtSampleStop
-
rtSampleStart
));
}
...
...
@@ -596,7 +596,7 @@ static HRESULT AVISplitter_ProcessIndex(AVISplitterImpl *This, AVISTDINDEX **ind
BOOL
keyframe
=
!
(
pIndex
->
aIndex
[
x
].
dwSize
>>
31
);
DWORDLONG
offset
=
pIndex
->
qwBaseOffset
+
pIndex
->
aIndex
[
x
].
dwOffset
;
TRACE
(
"dwOffset: %x%08x
\n
"
,
(
DWORD
)(
offset
>>
32
),
(
DWORD
)
offset
);
TRACE
(
"dwSize: %u
\n
"
,
(
pIndex
->
aIndex
[
x
].
dwSize
&
~
(
1
<<
31
)));
TRACE
(
"dwSize: %u
\n
"
,
(
pIndex
->
aIndex
[
x
].
dwSize
&
~
(
1
u
<<
31
)));
TRACE
(
"Frame is a keyframe: %s
\n
"
,
keyframe
?
"yes"
:
"no"
);
}
...
...
@@ -994,7 +994,7 @@ static HRESULT AVISplitter_InitializeStreams(AVISplitterImpl *This)
for
(
z
=
0
;
z
<
stream
->
stdindex
[
y
]
->
nEntriesInUse
;
++
z
)
{
UINT
len
=
stream
->
stdindex
[
y
]
->
aIndex
[
z
].
dwSize
&
~
(
1
<<
31
);
UINT
len
=
stream
->
stdindex
[
y
]
->
aIndex
[
z
].
dwSize
&
~
(
1
u
<<
31
);
frames
+=
len
/
stream
->
streamheader
.
dwSampleSize
+
!!
(
len
%
stream
->
streamheader
.
dwSampleSize
);
}
}
...
...
@@ -1342,7 +1342,7 @@ static HRESULT WINAPI AVISplitter_seek(IMediaSeeking *iface)
{
if
(
stream
->
streamheader
.
dwSampleSize
)
{
ULONG
len
=
stream
->
stdindex
[
y
]
->
aIndex
[
z
].
dwSize
&
~
(
1
<<
31
);
ULONG
len
=
stream
->
stdindex
[
y
]
->
aIndex
[
z
].
dwSize
&
~
(
1
u
<<
31
);
ULONG
size
=
stream
->
streamheader
.
dwSampleSize
;
pin
->
dwSamplesProcessed
+=
len
/
size
;
...
...
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