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
34648344
Commit
34648344
authored
May 11, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Fix a test failure on 32-bit Windows.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fafe82c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
vmr9.c
dlls/quartz/tests/vmr9.c
+18
-1
No files found.
dlls/quartz/tests/vmr9.c
View file @
34648344
...
...
@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdint.h>
#define COBJMACROS
#include "ocidl.h"
#include "olectl.h"
...
...
@@ -70,6 +71,22 @@ static inline BOOL compare_media_types(const AM_MEDIA_TYPE *a, const AM_MEDIA_TY
&&
!
memcmp
(
a
->
pbFormat
,
b
->
pbFormat
,
a
->
cbFormat
);
}
static
BOOL
compare_double
(
double
f
,
double
g
,
unsigned
int
ulps
)
{
int64_t
x
=
*
(
int64_t
*
)
&
f
;
int64_t
y
=
*
(
int64_t
*
)
&
g
;
if
(
x
<
0
)
x
=
INT64_MIN
-
x
;
if
(
y
<
0
)
y
=
INT64_MIN
-
y
;
if
(
abs
(
x
-
y
)
>
ulps
)
return
FALSE
;
return
TRUE
;
}
static
IFilterGraph2
*
create_graph
(
void
)
{
IFilterGraph2
*
ret
;
...
...
@@ -3693,7 +3710,7 @@ static void test_basic_video(void)
reftime
=
0
.
0
;
hr
=
IBasicVideo_get_AvgTimePerFrame
(
video
,
&
reftime
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
reftime
==
0
.
02
,
"Got frame rate %.16e.
\n
"
,
reftime
);
todo_wine
ok
(
compare_double
(
reftime
,
0
.
02
,
1
<<
28
)
,
"Got frame rate %.16e.
\n
"
,
reftime
);
l
=
0xdeadbeef
;
hr
=
IBasicVideo_get_BitRate
(
video
,
&
l
);
...
...
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