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
9800bca7
Commit
9800bca7
authored
Apr 15, 2014
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/decode_mpeg.c: various build fixes for Windows
parent
87ed77d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
examples/decode_mpeg.c
examples/decode_mpeg.c
+8
-4
No files found.
examples/decode_mpeg.c
View file @
9800bca7
...
...
@@ -206,6 +206,7 @@ static void report_Header( int i_report )
/*****************************************************************************
* PrintPacketTiming for REPORT_UDP
*****************************************************************************/
#ifdef HAVE_SYS_SOCKET_H
#ifdef HAVE_GETTIMEOFDAY
static
mtime_t
report_UDPPacketTiming
(
int32_t
i_seqno
,
int32_t
bytes
,
mtime_t
time_prev
,
mtime_t
*
time_base
)
{
...
...
@@ -238,6 +239,7 @@ static void report_UDPPacketTiming( int32_t i_seqno, int32_t bytes )
printf
(
"%d
\n
"
,
bytes
);
}
#endif
#endif
#ifdef HAVE_GETTIMEOFDAY
static
mtime_t
report_PCRPacketTiming
(
int
i_cc
,
ts_pid_t
*
ts_pid
,
...
...
@@ -281,7 +283,7 @@ static void report_PCRPacketTiming( int i_cc, ts_pid_t *ts_pid,
/* bitrate since last pcr */
if
(
(
i_delta
>
0
)
)
printf
(
"%d %
lld"
,
i_bytes
,
(
long
long
int
)(
i_bytes
*
8
)
/
i_delta
/
1000
);
printf
(
"%d %
"
PRId64
""
,
i_bytes
,
(
long
int
)(
i_bytes
*
8
)
/
i_delta
/
1000
);
else
printf
(
"%d 0"
,
i_bytes
);
...
...
@@ -578,12 +580,12 @@ int main(int i_argc, char* pa_argv[])
int
i_report
=
REPORT_UDP
;
/* REPORT_PCR REPORT_UDP */
int
i_port
=
0
;
char
*
ipaddress
=
NULL
;
#endif
#ifdef HAVE_GETTIMEOFDAY
mtime_t
time_prev
=
0
;
mtime_t
time_base
=
0
;
#endif
mtime_t
i_prev_pcr
=
0
;
/* 33 bits */
#endif
int
i_old_cc
=
-
1
;
uint32_t
i_bytes
=
0
;
/* bytes transmitted between PCR's */
char
*
filename
=
NULL
;
...
...
@@ -701,8 +703,9 @@ int main(int i_argc, char* pa_argv[])
while
(
i_len
>
0
)
{
int
i
=
0
;
#ifdef HAVE_SYS_SOCKET_H
vlc_bool_t
b_first
=
VLC_FALSE
;
#endif
i_bytes
+=
i_len
;
for
(
i
=
0
;
i
<
i_len
;
i
+=
188
)
{
...
...
@@ -780,10 +783,11 @@ int main(int i_argc, char* pa_argv[])
(
(
mtime_t
)
p_tmp
[
8
]
<<
9
)
|
(
(
mtime_t
)
p_tmp
[
9
]
<<
1
)
|
(
(
mtime_t
)
p_tmp
[
10
]
>>
7
)
)
/
90
;
i_prev_pcr
=
p_stream
->
pid
[
i_pid
].
i_pcr
;
p_stream
->
pid
[
i_pid
].
i_pcr
=
i_pcr
;
#ifdef HAVE_SYS_SOCKET_H
i_prev_pcr
=
p_stream
->
pid
[
i_pid
].
i_pcr
;
if
(
i_report
==
REPORT_PCR
)
{
#ifdef HAVE_GETTIMEOFDAY
...
...
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