Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bitstream
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
bitstream
Commits
e0f4129b
Commit
e0f4129b
authored
Oct 10, 2011
by
Georgi Chorbadzhiyski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvb/si: Complete support for descriptor 0x48 (Service descriptor).
Add desc48_set_length() function.
parent
f2a1a8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
dvb/si/desc_48.h
dvb/si/desc_48.h
+11
-0
No files found.
dvb/si/desc_48.h
View file @
e0f4129b
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* Copyright (C) 2009-2010 VideoLAN
* Copyright (C) 2009-2010 VideoLAN
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Georgi Chorbadzhiyski <georgi@unixsol.org>
*
*
* Permission is hereby granted, free of charge, to any person obtaining
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* a copy of this software and associated documentation files (the
...
@@ -96,6 +97,16 @@ static inline uint8_t *desc48_get_service(const uint8_t *p_desc,
...
@@ -96,6 +97,16 @@ static inline uint8_t *desc48_get_service(const uint8_t *p_desc,
return
p
+
1
;
return
p
+
1
;
}
}
static
inline
void
desc48_set_length
(
uint8_t
*
p_desc
)
{
uint8_t
i_provider_len
,
i_service_len
;
desc48_get_provider
(
p_desc
,
&
i_provider_len
);
desc48_get_service
(
p_desc
,
&
i_service_len
);
desc_set_length
(
p_desc
,
DESC48_HEADER_SIZE
-
DESC_HEADER_SIZE
+
1
+
i_provider_len
+
1
+
i_service_len
);
}
static
inline
bool
desc48_validate
(
const
uint8_t
*
p_desc
)
static
inline
bool
desc48_validate
(
const
uint8_t
*
p_desc
)
{
{
uint8_t
i_length
=
desc_get_length
(
p_desc
);
uint8_t
i_length
=
desc_get_length
(
p_desc
);
...
...
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