Commit 975725f8 authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

add tests for the stream identifier descriptor

Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jpsaman@videolan.org>
parent 8f5037d4
......@@ -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>
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment