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
f0ebe19b
Commit
f0ebe19b
authored
Nov 29, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix timestamping in avi decoder.
parent
d4185bad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
avidec.c
dlls/quartz/avidec.c
+8
-4
No files found.
dlls/quartz/avidec.c
View file @
f0ebe19b
...
@@ -160,8 +160,8 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
...
@@ -160,8 +160,8 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
flags
|=
ICDECOMPRESS_PREROLL
;
flags
|=
ICDECOMPRESS_PREROLL
;
if
(
IMediaSample_IsSyncPoint
(
pSample
)
!=
S_OK
)
if
(
IMediaSample_IsSyncPoint
(
pSample
)
!=
S_OK
)
flags
|=
ICDECOMPRESS_NOTKEYFRAME
;
flags
|=
ICDECOMPRESS_NOTKEYFRAME
;
if
(
IMediaSample_GetTime
(
pSample
,
&
tStart
,
NULL
)
==
S_OK
&&
hr
=
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
);
AVIDec_DropSample
(
This
,
tStart
))
if
(
hr
==
S_OK
&&
AVIDec_DropSample
(
This
,
tStart
))
flags
|=
ICDECOMPRESS_HURRYUP
;
flags
|=
ICDECOMPRESS_HURRYUP
;
res
=
ICDecompress
(
This
->
hvid
,
flags
,
This
->
pBihIn
,
pbSrcStream
,
This
->
pBihOut
,
pbDstStream
);
res
=
ICDecompress
(
This
->
hvid
,
flags
,
This
->
pBihIn
,
pbSrcStream
,
This
->
pBihOut
,
pbDstStream
);
...
@@ -169,8 +169,10 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
...
@@ -169,8 +169,10 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
ERR
(
"Error occurred during the decompression (%x)
\n
"
,
res
);
ERR
(
"Error occurred during the decompression (%x)
\n
"
,
res
);
/* Drop sample if its intended to be dropped */
/* Drop sample if its intended to be dropped */
if
(
flags
&
ICDECOMPRESS_HURRYUP
)
if
(
flags
&
ICDECOMPRESS_HURRYUP
)
{
hr
=
S_OK
;
goto
error
;
goto
error
;
}
IMediaSample_SetActualDataLength
(
pOutSample
,
This
->
pBihOut
->
biSizeImage
);
IMediaSample_SetActualDataLength
(
pOutSample
,
This
->
pBihOut
->
biSizeImage
);
...
@@ -178,8 +180,10 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
...
@@ -178,8 +180,10 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
IMediaSample_SetDiscontinuity
(
pOutSample
,
(
IMediaSample_IsDiscontinuity
(
pSample
)
==
S_OK
));
IMediaSample_SetDiscontinuity
(
pOutSample
,
(
IMediaSample_IsDiscontinuity
(
pSample
)
==
S_OK
));
IMediaSample_SetSyncPoint
(
pOutSample
,
(
IMediaSample_IsSyncPoint
(
pSample
)
==
S_OK
));
IMediaSample_SetSyncPoint
(
pOutSample
,
(
IMediaSample_IsSyncPoint
(
pSample
)
==
S_OK
));
if
(
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
)
==
S_OK
)
if
(
hr
==
S_OK
)
IMediaSample_SetTime
(
pOutSample
,
&
tStart
,
&
tStop
);
IMediaSample_SetTime
(
pOutSample
,
&
tStart
,
&
tStop
);
else
if
(
hr
==
VFW_S_NO_STOP_TIME
)
IMediaSample_SetTime
(
pOutSample
,
&
tStart
,
NULL
);
else
else
IMediaSample_SetTime
(
pOutSample
,
NULL
,
NULL
);
IMediaSample_SetTime
(
pOutSample
,
NULL
,
NULL
);
...
...
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