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
ef99ff06
Commit
ef99ff06
authored
Jun 28, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for network name descriptor
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
f7c2ff9f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
misc/dr.xml
misc/dr.xml
+4
-0
misc/test_dr.c
misc/test_dr.c
+22
-0
No files found.
misc/dr.xml
View file @
ef99ff06
...
@@ -130,6 +130,10 @@
...
@@ -130,6 +130,10 @@
<integer
name=
"i_mpeg4_audio_profile_and_level"
bitcount=
"8"
default=
"0"
/>
<integer
name=
"i_mpeg4_audio_profile_and_level"
bitcount=
"8"
default=
"0"
/>
</descriptor>
</descriptor>
<descriptor
name=
"network name"
sname=
"network_name"
fname=
"NetworkName"
>
<array
name=
"i_name_byte"
len_name=
"i_name_length"
min_size=
"0"
/>
</descriptor>
<descriptor
name=
"stuffing"
sname=
"stuffing"
fname=
"Stuffing"
>
<descriptor
name=
"stuffing"
sname=
"stuffing"
fname=
"Stuffing"
>
<array
name=
"i_stuffing_byte"
len_name=
"i_stuffing_length"
min_size=
"0"
/>
<array
name=
"i_stuffing_byte"
len_name=
"i_stuffing_length"
min_size=
"0"
/>
</descriptor>
</descriptor>
...
...
misc/test_dr.c
View file @
ef99ff06
...
@@ -815,6 +815,27 @@ static int main_mpeg4_audio_(void)
...
@@ -815,6 +815,27 @@ static int main_mpeg4_audio_(void)
return
i_err
;
return
i_err
;
}
}
/* network name */
static
int
main_network_name_
(
void
)
{
BOZO_VARS
(
network_name
);
BOZO_START
(
network
name
);
/* check i_name_byte */
BOZO_begin_array
(
i_name_byte
,
i_name_length
,
0
)
BOZO_DOJOB
(
NetworkName
);
BOZO_check_array
(
i_name_byte
,
i_name_length
)
BOZO_CLEAN
();
BOZO_end_array
(
i_name_byte
,
ARRAY_SIZE
(
s_decoded
.
i_name_byte
))
BOZO_END
(
network
name
);
return
i_err
;
}
/* stuffing */
/* stuffing */
static
int
main_stuffing_
(
void
)
static
int
main_stuffing_
(
void
)
{
{
...
@@ -990,6 +1011,7 @@ int main(void)
...
@@ -990,6 +1011,7 @@ int main(void)
i_err
|=
main_ibp_
();
i_err
|=
main_ibp_
();
i_err
|=
main_mpeg4_video_
();
i_err
|=
main_mpeg4_video_
();
i_err
|=
main_mpeg4_audio_
();
i_err
|=
main_mpeg4_audio_
();
i_err
|=
main_network_name_
();
i_err
|=
main_stuffing_
();
i_err
|=
main_stuffing_
();
i_err
|=
main_bouquet_name_
();
i_err
|=
main_bouquet_name_
();
i_err
|=
main_service_1
();
i_err
|=
main_service_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