Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
f4deac18
Commit
f4deac18
authored
Sep 20, 2006
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix clock accuracy computing, it's (integer * 10 ^ - exponent).
parent
50ed68f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/decode_mpeg.c
examples/decode_mpeg.c
+1
-1
examples/decode_pmt.c
examples/decode_pmt.c
+1
-1
No files found.
examples/decode_mpeg.c
View file @
f4deac18
...
@@ -269,7 +269,7 @@ void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
...
@@ -269,7 +269,7 @@ void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
printf
(
"External clock: %s, Accuracy: %E
\n
"
,
printf
(
"External clock: %s, Accuracy: %E
\n
"
,
p_clock_descriptor
->
b_external_clock_ref
?
"Yes"
:
"No"
,
p_clock_descriptor
->
b_external_clock_ref
?
"Yes"
:
"No"
,
p_clock_descriptor
->
i_clock_accuracy_integer
*
p_clock_descriptor
->
i_clock_accuracy_integer
*
pow
(
10
,
p_clock_descriptor
->
i_clock_accuracy_exponent
));
pow
(
10
.
0
,
-
(
double
)
p_clock_descriptor
->
i_clock_accuracy_exponent
));
}
}
/*****************************************************************************
/*****************************************************************************
...
...
examples/decode_pmt.c
View file @
f4deac18
...
@@ -145,7 +145,7 @@ void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
...
@@ -145,7 +145,7 @@ void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
printf
(
"External clock: %s, Accuracy: %E
\n
"
,
printf
(
"External clock: %s, Accuracy: %E
\n
"
,
p_clock_descriptor
->
b_external_clock_ref
?
"Yes"
:
"No"
,
p_clock_descriptor
->
b_external_clock_ref
?
"Yes"
:
"No"
,
p_clock_descriptor
->
i_clock_accuracy_integer
*
p_clock_descriptor
->
i_clock_accuracy_integer
*
pow
(
10
,
p_clock_descriptor
->
i_clock_accuracy_exponent
));
pow
(
10
.
0
,
-
(
double
)
p_clock_descriptor
->
i_clock_accuracy_exponent
));
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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