Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d28c40da
Commit
d28c40da
authored
Dec 31, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Dec 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Remove the 1024 frame limit when recording AVI files.
parent
89837cb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
avifile.c
dlls/avifil32/avifile.c
+14
-4
No files found.
dlls/avifil32/avifile.c
View file @
d28c40da
...
...
@@ -1424,11 +1424,21 @@ static HRESULT AVIFILE_AddRecord(IAVIFileImpl *This)
/* pre-conditions */
assert
(
This
!=
NULL
&&
This
->
ppStreams
[
0
]
!=
NULL
);
if
(
This
->
idxRecords
==
NULL
||
This
->
cbIdxRecords
==
0
)
{
This
->
cbIdxRecords
+=
1024
*
sizeof
(
AVIINDEXENTRY
);
This
->
idxRecords
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
cbIdxRecords
);
if
(
This
->
idxRecords
==
NULL
)
if
(
This
->
idxRecords
==
NULL
||
This
->
cbIdxRecords
/
sizeof
(
AVIINDEXENTRY
)
<=
This
->
nIdxRecords
)
{
DWORD
new_count
=
This
->
cbIdxRecords
+
1024
*
sizeof
(
AVIINDEXENTRY
);
void
*
mem
;
if
(
!
This
->
idxRecords
)
mem
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
new_count
);
else
mem
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
idxRecords
,
new_count
);
if
(
mem
)
{
This
->
cbIdxRecords
=
new_count
;
This
->
idxRecords
=
mem
;
}
else
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
idxRecords
);
This
->
idxRecords
=
NULL
;
return
AVIERR_MEMORY
;
}
}
assert
(
This
->
nIdxRecords
<
This
->
cbIdxRecords
/
sizeof
(
AVIINDEXENTRY
));
...
...
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