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
9473b750
Commit
9473b750
authored
Jun 10, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jun 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Set data length in avi decompressor.
parent
40c05668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
avidec.c
dlls/quartz/avidec.c
+3
-2
No files found.
dlls/quartz/avidec.c
View file @
9473b750
...
...
@@ -117,14 +117,15 @@ static HRESULT AVIDec_ProcessSampleData(TransformFilterImpl* pTransformFilter, I
cbDstStream
=
IMediaSample_GetSize
(
pOutSample
);
if
(
cbDstStream
<
This
->
pBihOut
->
biSizeImage
)
{
ERR
(
"Sample size is too small %d < %d
\n
"
,
cbDstStream
,
This
->
pBihOut
->
biSizeImage
);
hr
=
E_FAIL
;
goto
error
;
hr
=
E_FAIL
;
goto
error
;
}
res
=
ICDecompress
(
This
->
hvid
,
0
,
This
->
pBihIn
,
pbSrcStream
,
This
->
pBihOut
,
pbDstStream
);
if
(
res
!=
ICERR_OK
)
ERR
(
"Error occurred during the decompression (%x)
\n
"
,
res
);
IMediaSample_SetActualDataLength
(
pOutSample
,
This
->
pBihOut
->
biSizeImage
);
IMediaSample_SetPreroll
(
pOutSample
,
(
IMediaSample_IsPreroll
(
pSample
)
==
S_OK
));
IMediaSample_SetDiscontinuity
(
pOutSample
,
(
IMediaSample_IsDiscontinuity
(
pSample
)
==
S_OK
));
...
...
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