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
ff0cd457
Commit
ff0cd457
authored
Mar 05, 2024
by
Ziqing Hui
Committed by
Alexandre Julliard
Mar 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Set AvgTimePerFrame in GetOutputType() for WMV decoder.
Krkr2 game engine need AvgTimePerFrame to calculate video frame time.
parent
732ed628
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
transform.c
dlls/mf/tests/transform.c
+0
-1
wmv_decoder.c
dlls/winegstreamer/wmv_decoder.c
+2
-0
No files found.
dlls/mf/tests/transform.c
View file @
ff0cd457
...
...
@@ -1349,7 +1349,6 @@ static void check_video_info_header_(int line, VIDEOINFOHEADER *info, const VIDE
expected
->
rcTarget
.
left
,
expected
->
rcTarget
.
top
,
expected
->
rcTarget
.
right
,
expected
->
rcTarget
.
bottom
);
check_member_
(
__FILE__
,
line
,
*
info
,
*
expected
,
"%lu"
,
dwBitRate
);
check_member_
(
__FILE__
,
line
,
*
info
,
*
expected
,
"%lu"
,
dwBitErrorRate
);
todo_wine_if
(
expected
->
AvgTimePerFrame
)
check_member_
(
__FILE__
,
line
,
*
info
,
*
expected
,
"%I64d"
,
AvgTimePerFrame
);
check_member_
(
__FILE__
,
line
,
*
info
,
*
expected
,
"%lu"
,
bmiHeader
.
biSize
);
check_member_
(
__FILE__
,
line
,
*
info
,
*
expected
,
"%ld"
,
bmiHeader
.
biWidth
);
...
...
dlls/winegstreamer/wmv_decoder.c
View file @
ff0cd457
...
...
@@ -470,6 +470,8 @@ static HRESULT WINAPI media_object_GetOutputType(IMediaObject *iface, DWORD inde
info
->
rcSource
.
bottom
=
height
;
info
->
rcTarget
.
right
=
width
;
info
->
rcTarget
.
bottom
=
height
;
info
->
AvgTimePerFrame
=
MulDiv
(
10000000
,
decoder
->
input_format
.
u
.
video_wmv
.
fps_d
,
decoder
->
input_format
.
u
.
video_wmv
.
fps_n
);
info
->
bmiHeader
.
biSize
=
sizeof
(
info
->
bmiHeader
);
info
->
bmiHeader
.
biWidth
=
width
;
info
->
bmiHeader
.
biHeight
=
height
;
...
...
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