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
9526499b
Commit
9526499b
authored
Jan 24, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Set bmiHeader.biSizeImage in the transform filter.
parent
9ef59aad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gsttffilter.c
dlls/winegstreamer/gsttffilter.c
+5
-3
No files found.
dlls/winegstreamer/gsttffilter.c
View file @
9526499b
...
...
@@ -627,7 +627,7 @@ static HRESULT WINAPI Gstreamer_YUV_SetMediaType(TransformFilter *tf, PIN_DIRECT
AM_MEDIA_TYPE
*
outpmt
=
&
This
->
tf
.
pmt
;
HRESULT
hr
;
int
avgtime
;
DWORD
width
,
height
;
LONG
width
,
height
;
if
(
dir
!=
PINDIR_INPUT
)
return
S_OK
;
...
...
@@ -643,19 +643,21 @@ static HRESULT WINAPI Gstreamer_YUV_SetMediaType(TransformFilter *tf, PIN_DIRECT
avgtime
=
vih
->
AvgTimePerFrame
;
width
=
vih
->
bmiHeader
.
biWidth
;
height
=
vih
->
bmiHeader
.
biHeight
;
if
(
(
LONG
)
vih
->
bmiHeader
.
biHeight
>
0
)
if
(
vih
->
bmiHeader
.
biHeight
>
0
)
vih
->
bmiHeader
.
biHeight
=
-
vih
->
bmiHeader
.
biHeight
;
vih
->
bmiHeader
.
biBitCount
=
24
;
vih
->
bmiHeader
.
biCompression
=
BI_RGB
;
vih
->
bmiHeader
.
biSizeImage
=
width
*
abs
(
height
)
*
3
;
}
else
{
VIDEOINFOHEADER2
*
vih
=
(
VIDEOINFOHEADER2
*
)
outpmt
->
pbFormat
;
avgtime
=
vih
->
AvgTimePerFrame
;
width
=
vih
->
bmiHeader
.
biWidth
;
height
=
vih
->
bmiHeader
.
biHeight
;
if
(
(
LONG
)
vih
->
bmiHeader
.
biHeight
>
0
)
if
(
vih
->
bmiHeader
.
biHeight
>
0
)
vih
->
bmiHeader
.
biHeight
=
-
vih
->
bmiHeader
.
biHeight
;
vih
->
bmiHeader
.
biBitCount
=
24
;
vih
->
bmiHeader
.
biCompression
=
BI_RGB
;
vih
->
bmiHeader
.
biSizeImage
=
width
*
abs
(
height
)
*
3
;
}
if
(
!
avgtime
)
avgtime
=
10000000
/
30
;
...
...
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