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
d48feb24
Commit
d48feb24
authored
Oct 23, 2002
by
Michael Günnewig
Committed by
Alexandre Julliard
Oct 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that prevented ICCompressorChoose from working.
parent
402f2618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
getframe.c
dlls/avifil32/getframe.c
+8
-2
No files found.
dlls/avifil32/getframe.c
View file @
d48feb24
...
...
@@ -224,7 +224,7 @@ static LPVOID WINAPI IGetFrame_fnGetFrame(IGetFrame *iface, LONG lPos)
LONG
lNext
=
AVIStreamFindSample
(
This
->
pStream
,
lPos
,
FIND_KEY
|
FIND_PREV
);
if
(
lNext
==
-
1
)
lNext
=
0
;
/* first frame is always a keyframe */
return
NULL
;
if
(
lNext
<=
This
->
lCurrentFrame
&&
This
->
lCurrentFrame
<
lPos
)
lNext
++
;
...
...
@@ -338,6 +338,8 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
/* get input format from stream */
if
(
This
->
lpInFormat
==
NULL
)
{
HRESULT
hr
;
This
->
cbInBuffer
=
sInfo
.
dwSuggestedBufferSize
;
if
(
This
->
cbInBuffer
==
0
)
This
->
cbInBuffer
=
1024
;
...
...
@@ -351,7 +353,11 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
return
AVIERR_MEMORY
;
}
AVIStreamReadFormat
(
This
->
pStream
,
sInfo
.
dwStart
,
This
->
lpInFormat
,
&
This
->
cbInFormat
);
hr
=
AVIStreamReadFormat
(
This
->
pStream
,
sInfo
.
dwStart
,
This
->
lpInFormat
,
&
This
->
cbInFormat
);
if
(
FAILED
(
hr
))
{
AVIFILE_CloseCompressor
(
This
);
return
hr
;
}
This
->
lpInBuffer
=
((
LPBYTE
)
This
->
lpInFormat
)
+
This
->
cbInFormat
;
}
...
...
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