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
175138a4
Commit
175138a4
authored
Oct 18, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Oct 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Absolute addresses already point to the correct place in the frame.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8e3c1f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
avifile.c
dlls/avifil32/avifile.c
+8
-4
No files found.
dlls/avifil32/avifile.c
View file @
175138a4
...
...
@@ -1987,13 +1987,17 @@ static HRESULT AVIFILE_ParseIndex(const IAVIFileImpl *This, AVIINDEXENTRY *lp,
if
(
nStream
>
This
->
fInfo
.
dwStreams
)
return
AVIERR_BADFORMAT
;
/* Video frames can be either indexed in a relative position to the
* "movi" chunk or in a absolute position in the file. If the index
* is relative the frame offset will always be so small that it will
* virtually never reach the "movi" offset so we can detect if the
* video is relative very fast.
*/
if
(
*
bAbsolute
&&
lp
->
dwChunkOffset
<
This
->
dwMoviChunkPos
)
*
bAbsolute
=
FALSE
;
if
(
*
bAbsolute
)
lp
->
dwChunkOffset
+=
sizeof
(
DWORD
);
else
lp
->
dwChunkOffset
+=
pos
;
if
(
!*
bAbsolute
)
lp
->
dwChunkOffset
+=
pos
;
/* make the offset absolute */
if
(
FAILED
(
AVIFILE_AddFrame
(
This
->
ppStreams
[
nStream
],
lp
->
ckid
,
lp
->
dwChunkLength
,
lp
->
dwChunkOffset
,
lp
->
dwFlags
)))
return
AVIERR_MEMORY
;
...
...
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