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
6b953ffc
Commit
6b953ffc
authored
Oct 19, 2002
by
Michael Günnewig
Committed by
Alexandre Julliard
Oct 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed very slow loading of index.
parent
b34fb35b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
avifile.c
dlls/avifil32/avifile.c
+2
-2
No files found.
dlls/avifil32/avifile.c
View file @
6b953ffc
...
...
@@ -1348,7 +1348,7 @@ static HRESULT AVIFILE_AddFrame(IAVIStreamImpl *This, DWORD ckid, DWORD size, DW
This
->
sInfo
.
dwSuggestedBufferSize
=
size
;
/* get memory for index */
if
(
This
->
idxFrames
==
NULL
||
This
->
dwLastFrame
+
1
<
This
->
nIdxFrames
)
{
if
(
This
->
idxFrames
==
NULL
||
This
->
dwLastFrame
+
1
>=
This
->
nIdxFrames
)
{
This
->
nIdxFrames
+=
512
;
This
->
idxFrames
=
GlobalReAllocPtr
(
This
->
idxFrames
,
This
->
nIdxFrames
*
sizeof
(
AVIINDEXENTRY
),
GHND
);
if
(
This
->
idxFrames
==
NULL
)
...
...
@@ -1812,7 +1812,7 @@ static HRESULT AVIFILE_LoadIndex(IAVIFileImpl *This, DWORD size, DWORD offset)
if
(
pStream
->
sInfo
.
dwSampleSize
!=
0
)
{
if
(
n
>
0
&&
This
->
fInfo
.
dwFlags
&
AVIFILEINFO_ISINTERLEAVED
)
{
pStream
->
nIdxFrames
=
pStream
->
nIdxFrames
;
pStream
->
nIdxFrames
=
This
->
ppStreams
[
0
]
->
nIdxFrames
;
}
else
if
(
pStream
->
sInfo
.
dwSuggestedBufferSize
)
{
pStream
->
nIdxFrames
=
pStream
->
sInfo
.
dwLength
/
pStream
->
sInfo
.
dwSuggestedBufferSize
;
...
...
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