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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
avidec.c
dlls/quartz/avidec.c
+14
-3
No files found.
dlls/quartz/avidec.c
View file @
c4e32aad
...
...
@@ -78,12 +78,13 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, I
LPBYTE
pbDstStream
;
DWORD
cbSrcStream
;
LPBYTE
pbSrcStream
;
LONGLONG
tStart
,
tStop
;
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Cannot get pointer to sample data (%x)
\n
"
,
hr
);
return
hr
;
return
hr
;
}
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
...
...
@@ -92,8 +93,8 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, I
hr
=
IPin_ConnectionMediaType
(
This
->
tf
.
ppPins
[
0
],
&
amt
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to retrieve media type
\n
"
);
goto
error
;
ERR
(
"Unable to retrieve media type
\n
"
);
goto
error
;
}
/* Update input size to match sample size */
...
...
@@ -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