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
595b1b08
Commit
595b1b08
authored
Nov 10, 2004
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/tables/eit.c, src/tables/sdt.c: Fixed numerous parsing bugs due to
wrong offsets and bad reading of the spec (sic).
parent
3e59642d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
src/tables/eit.c
src/tables/eit.c
+13
-13
src/tables/sdt.c
src/tables/sdt.c
+2
-2
No files found.
src/tables/eit.c
View file @
595b1b08
...
...
@@ -468,26 +468,26 @@ void dvbpsi_DecodeEITSections(dvbpsi_eit_t* p_eit,
while
(
p_section
)
{
for
(
p_byte
=
p_section
->
p_payload_start
+
3
;
p_byte
<
p_section
->
p_payload_end
;)
for
(
p_byte
=
p_section
->
p_payload_start
+
6
;
p_byte
<
p_section
->
p_payload_end
-
12
;)
{
uint16_t
i_event_id
=
((
uint16_t
)(
p_byte
[
0
])
<<
8
)
|
p_byte
[
1
];
uint64_t
i_start_time
=
((
uint64_t
)(
p_byte
[
1
])
<<
32
)
|
((
uint64_t
)(
p_byte
[
2
])
<<
24
)
|
((
uint64_t
)(
p_byte
[
3
])
<<
16
)
|
((
uint64_t
)(
p_byte
[
4
])
<<
8
)
|
p_byte
[
5
];
uint32_t
i_duration
=
((
uint32_t
)(
p_byte
[
5
])
<<
16
)
|
((
uint32_t
)(
p_byte
[
6
])
<<
8
)
|
p_byte
[
7
];
uint8_t
i_running_status
=
(
uint8_t
)(
p_byte
[
8
])
>>
5
;
int
b_free_ca
=
(
int
)(
p_byte
[
8
])
&
0x10
>>
4
;
uint16_t
i_length
=
((
uint16_t
)(
p_byte
[
8
]
&
0xf
)
<<
8
)
|
p_byte
[
9
];
uint64_t
i_start_time
=
((
uint64_t
)(
p_byte
[
2
])
<<
32
)
|
((
uint64_t
)(
p_byte
[
3
])
<<
24
)
|
((
uint64_t
)(
p_byte
[
4
])
<<
16
)
|
((
uint64_t
)(
p_byte
[
5
])
<<
8
)
|
p_byte
[
6
];
uint32_t
i_duration
=
((
uint32_t
)(
p_byte
[
7
])
<<
16
)
|
((
uint32_t
)(
p_byte
[
8
])
<<
8
)
|
p_byte
[
9
];
uint8_t
i_running_status
=
(
uint8_t
)(
p_byte
[
10
])
>>
5
;
int
b_free_ca
=
(
int
)(
p_byte
[
10
])
&
0x10
>>
4
;
uint16_t
i_length
=
((
uint16_t
)(
p_byte
[
10
]
&
0xf
)
<<
8
)
|
p_byte
[
11
];
dvbpsi_eit_event_t
*
p_event
=
dvbpsi_EITAddEvent
(
p_eit
,
i_event_id
,
i_start_time
,
i_duration
,
i_running_status
,
b_free_ca
);
/* Event descriptors */
p_byte
+=
1
0
;
p_byte
+=
1
2
;
p_end
=
p_byte
+
i_length
;
while
(
p_byte
+
2
<
p_end
)
while
(
p_byte
+
2
<
=
p_end
)
{
uint8_t
i_tag
=
p_byte
[
0
];
uint8_t
i_length
=
p_byte
[
1
];
...
...
src/tables/sdt.c
View file @
595b1b08
...
...
@@ -2,7 +2,7 @@
* sdt.c: SDT decoder/generator
*----------------------------------------------------------------------------
* (c)2001-2002 VideoLAN
* $Id
: sdt.c,v 1.2 2003/09/16 18:43:09 asmax Exp
$
* $Id$
*
* Authors: Johan Bilien <jobi@via.ecp.fr>
*
...
...
@@ -476,7 +476,7 @@ void dvbpsi_DecodeSDTSections(dvbpsi_sdt_t* p_sdt,
/* Service descriptors */
p_byte
+=
5
;
p_end
=
p_byte
+
i_length
;
while
(
p_byte
+
2
<
p_end
)
while
(
p_byte
+
2
<
=
p_end
)
{
uint8_t
i_tag
=
p_byte
[
0
];
uint8_t
i_length
=
p_byte
[
1
];
...
...
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