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
c4e32aad
Commit
c4e32aad
authored
May 21, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Do timekeeping in the avi decoder.
Fixes the timestamps generated.
parent
6d751868
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
avidec.c
dlls/quartz/avidec.c
+11
-0
No files found.
dlls/quartz/avidec.c
View file @
c4e32aad
...
...
@@ -78,6 +78,7 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, I
LPBYTE
pbDstStream
;
DWORD
cbSrcStream
;
LPBYTE
pbSrcStream
;
LONGLONG
tStart
,
tStop
;
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
...
...
@@ -124,6 +125,16 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, I
if
(
res
!=
ICERR_OK
)
ERR
(
"Error occurred during the decompression (%x)
\n
"
,
res
);
IMediaSample_SetPreroll
(
pOutSample
,
(
IMediaSample_IsPreroll
(
pSample
)
==
S_OK
));
IMediaSample_SetDiscontinuity
(
pOutSample
,
(
IMediaSample_IsDiscontinuity
(
pSample
)
==
S_OK
));
IMediaSample_SetSyncPoint
(
pOutSample
,
(
IMediaSample_IsSyncPoint
(
pSample
)
==
S_OK
));
if
(
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
)
==
S_OK
)
IMediaSample_SetTime
(
pOutSample
,
&
tStart
,
&
tStop
);
else
IMediaSample_SetTime
(
pOutSample
,
NULL
,
NULL
);
hr
=
OutputPin_SendSample
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
],
pOutSample
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_CONNECTED
)
{
ERR
(
"Error sending sample (%x)
\n
"
,
hr
);
...
...
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