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
ca466ffa
Commit
ca466ffa
authored
Oct 08, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: fix PAT and PMT generator test applications.
parent
76803dd0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
9 deletions
+29
-9
NEWS
NEWS
+2
-1
configure.ac
configure.ac
+1
-1
misc/gen_pat.c
misc/gen_pat.c
+13
-4
misc/gen_pmt.c
misc/gen_pmt.c
+13
-3
No files found.
NEWS
View file @
ca466ffa
Changes between 0.2.2 and 1.0.0_pre
2
:
Changes between 0.2.2 and 1.0.0_pre
3
:
--------------------------------
* new example application dvbinfo: use 'dvbinfo -h' for more information on commandline options
* misc examples: fixes to gen_pat, gen_pmt
* updated documentation (new api howto)
* add log callback (remove fprintf's)
* make API more consistent, see doxygen "howto-new-api" section for converting your code:
...
...
configure.ac
View file @
ca466ffa
AC_INIT(libdvbpsi, 1.0.0_pre
2
)
AC_INIT(libdvbpsi, 1.0.0_pre
3
)
AC_PREREQ(2.50)
AC_CONFIG_AUX_DIR(.auto)
...
...
misc/gen_pat.c
View file @
ca466ffa
...
...
@@ -56,6 +56,7 @@ static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
while
(
p_section
)
{
size_t
i_bytes_written
=
0
;
uint8_t
*
p_pos_in_ts
;
uint8_t
*
p_byte
=
p_section
->
p_data
;
uint8_t
*
p_end
=
p_section
->
p_payload_end
...
...
@@ -71,8 +72,12 @@ static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
*
(
p_pos_in_ts
++
)
=
*
(
p_byte
++
);
while
(
p_pos_in_ts
<
p_packet
+
188
)
*
(
p_pos_in_ts
++
)
=
0xff
;
fwrite
(
p_packet
,
1
,
188
,
stdout
);
i_bytes_written
=
fwrite
(
p_packet
,
1
,
188
,
stdout
);
if
(
i_bytes_written
==
0
)
{
fprintf
(
stderr
,
"eof detected ... aborting
\n
"
);
return
;
}
p_packet
[
3
]
=
(
p_packet
[
3
]
+
1
)
&
0x0f
;
while
(
p_byte
<
p_end
)
...
...
@@ -86,8 +91,12 @@ static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
*
(
p_pos_in_ts
++
)
=
*
(
p_byte
++
);
while
(
p_pos_in_ts
<
p_packet
+
188
)
*
(
p_pos_in_ts
++
)
=
0xff
;
fwrite
(
p_packet
,
1
,
188
,
stdout
);
i_bytes_written
=
fwrite
(
p_packet
,
1
,
188
,
stdout
);
if
(
i_bytes_written
==
0
)
{
fprintf
(
stderr
,
"eof detected ... aborting
\n
"
);
return
;
}
p_packet
[
3
]
=
(
p_packet
[
3
]
+
1
)
&
0x0f
;
}
...
...
misc/gen_pmt.c
View file @
ca466ffa
...
...
@@ -61,6 +61,7 @@ static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
while
(
p_section
)
{
size_t
i_bytes_written
=
0
;
uint8_t
*
p_pos_in_ts
;
uint8_t
*
p_byte
=
p_section
->
p_data
;
uint8_t
*
p_end
=
p_section
->
p_payload_end
...
...
@@ -76,8 +77,12 @@ static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
*
(
p_pos_in_ts
++
)
=
*
(
p_byte
++
);
while
(
p_pos_in_ts
<
p_packet
+
188
)
*
(
p_pos_in_ts
++
)
=
0xff
;
fwrite
(
p_packet
,
1
,
188
,
stdout
);
i_bytes_written
=
fwrite
(
p_packet
,
1
,
188
,
stdout
);
if
(
i_bytes_written
==
0
)
{
fprintf
(
stderr
,
"eof detected ... aborting
\n
"
);
return
;
}
p_packet
[
3
]
=
(
p_packet
[
3
]
+
1
)
&
0x0f
;
while
(
p_byte
<
p_end
)
...
...
@@ -91,7 +96,12 @@ static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
*
(
p_pos_in_ts
++
)
=
*
(
p_byte
++
);
while
(
p_pos_in_ts
<
p_packet
+
188
)
*
(
p_pos_in_ts
++
)
=
0xff
;
fwrite
(
p_packet
,
1
,
188
,
stdout
);
i_bytes_written
=
fwrite
(
p_packet
,
1
,
188
,
stdout
);
if
(
i_bytes_written
==
0
)
{
fprintf
(
stderr
,
"eof detected ... aborting
\n
"
);
return
;
}
p_packet
[
3
]
=
(
p_packet
[
3
]
+
1
)
&
0x0f
;
}
...
...
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