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
975725f8
Commit
975725f8
authored
Jul 19, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for the stream identifier descriptor
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
8f5037d4
Changes
2
Hide 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 @
975725f8
...
...
@@ -320,4 +320,8 @@
<integer
name=
"i_ref_event_id"
bitcount=
"16"
default=
"0"
/>
</descriptor>
<descriptor
name=
"stream identifier"
sname=
"stream_identifier"
fname=
"StreamIdentifier"
>
<integer
name=
"i_component_tag"
bitcount=
"8"
default=
"0"
/>
</descriptor>
</dr>
misc/test_dr.c
View file @
975725f8
...
...
@@ -2060,6 +2060,27 @@ static int main_tshifted_ev_(void)
return
i_err
;
}
/* stream identifier */
static
int
main_stream_identifier_
(
void
)
{
BOZO_VARS
(
stream_identifier
);
BOZO_START
(
stream
identifier
);
/* check i_component_tag */
BOZO_init_integer
(
i_component_tag
,
0
);
BOZO_begin_integer
(
i_component_tag
,
8
)
BOZO_DOJOB
(
StreamIdentifier
);
BOZO_check_integer
(
i_component_tag
,
8
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_component_tag
,
8
)
BOZO_END
(
stream
identifier
);
return
i_err
;
}
/* main function */
int
main
(
void
)
...
...
@@ -2108,6 +2129,7 @@ int main(void)
i_err
|=
main_short_event_1
();
i_err
|=
main_short_event_2
();
i_err
|=
main_tshifted_ev_
();
i_err
|=
main_stream_identifier_
();
if
(
i_err
)
fprintf
(
stderr
,
"At least one test has FAILED !!!
\n
"
);
...
...
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