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
7d74b4aa
Commit
7d74b4aa
authored
Nov 03, 2011
by
Georgi Chorbadzhiyski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvb/si: Fix for descriptor 0x6b (Ancillary data descriptor).
The bits were reversed, now they are where they should be.
parent
56fca374
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
dvb/si/desc_6b.h
dvb/si/desc_6b.h
+10
-10
examples/dvb_print_si.output.txt
examples/dvb_print_si.output.txt
+1
-1
examples/dvb_print_si.output.xml
examples/dvb_print_si.output.xml
+2
-2
No files found.
dvb/si/desc_6b.h
View file @
7d74b4aa
...
@@ -50,7 +50,7 @@ static inline void desc6b_init(uint8_t *p_desc)
...
@@ -50,7 +50,7 @@ static inline void desc6b_init(uint8_t *p_desc)
{
{
desc_set_tag
(
p_desc
,
0x6b
);
desc_set_tag
(
p_desc
,
0x6b
);
desc_set_length
(
p_desc
,
(
DESC6B_HEADER_SIZE
-
DESC_HEADER_SIZE
));
desc_set_length
(
p_desc
,
(
DESC6B_HEADER_SIZE
-
DESC_HEADER_SIZE
));
p_desc
[
2
]
=
0x
01
;
p_desc
[
2
]
=
0x
80
;
}
}
static
inline
uint8_t
desc6b_get_ancillary_data_indentifier
(
const
uint8_t
*
p_desc
)
static
inline
uint8_t
desc6b_get_ancillary_data_indentifier
(
const
uint8_t
*
p_desc
)
...
@@ -60,7 +60,7 @@ static inline uint8_t desc6b_get_ancillary_data_indentifier(const uint8_t *p_des
...
@@ -60,7 +60,7 @@ static inline uint8_t desc6b_get_ancillary_data_indentifier(const uint8_t *p_des
static
inline
void
desc6b_set_ancillary_data_indentifier
(
uint8_t
*
p_desc
,
uint8_t
i_data
)
static
inline
void
desc6b_set_ancillary_data_indentifier
(
uint8_t
*
p_desc
,
uint8_t
i_data
)
{
{
p_desc
[
2
]
=
i_data
|
0x
01
;
p_desc
[
2
]
=
i_data
|
0x
80
;
}
}
#define __DEFINE_FLAG(FLAGNAME, bit) \
#define __DEFINE_FLAG(FLAGNAME, bit) \
...
@@ -74,13 +74,13 @@ static inline void desc6b_set_ancillary_data_indentifier(uint8_t *p_desc, uint8_
...
@@ -74,13 +74,13 @@ static inline void desc6b_set_ancillary_data_indentifier(uint8_t *p_desc, uint8_
p_desc[2] = b_##FLAGNAME ? (p_desc[2] | bit) : (p_desc[2] &~ bit); \
p_desc[2] = b_##FLAGNAME ? (p_desc[2] | bit) : (p_desc[2] &~ bit); \
}
}
__DEFINE_FLAG
(
dvd_video_ancillary_data
,
0x
80
)
__DEFINE_FLAG
(
dvd_video_ancillary_data
,
0x
01
)
__DEFINE_FLAG
(
extended_ancillary_data
,
0x
40
)
__DEFINE_FLAG
(
extended_ancillary_data
,
0x
02
)
__DEFINE_FLAG
(
announcement_switching_data
,
0x
20
)
__DEFINE_FLAG
(
announcement_switching_data
,
0x
04
)
__DEFINE_FLAG
(
dab_ancillary_data
,
0x
10
)
__DEFINE_FLAG
(
dab_ancillary_data
,
0x
08
)
__DEFINE_FLAG
(
scale_factor_error_check
,
0x
08
)
__DEFINE_FLAG
(
scale_factor_error_check
,
0x
10
)
__DEFINE_FLAG
(
mpeg4_ancillary_data
,
0x
04
)
__DEFINE_FLAG
(
mpeg4_ancillary_data
,
0x
20
)
__DEFINE_FLAG
(
rds_via_uecp
,
0x
02
)
__DEFINE_FLAG
(
rds_via_uecp
,
0x
40
)
#undef __DEFINE_FLAG
#undef __DEFINE_FLAG
...
@@ -95,7 +95,7 @@ static inline void desc6b_print(const uint8_t *p_desc, f_print pf_print,
...
@@ -95,7 +95,7 @@ static inline void desc6b_print(const uint8_t *p_desc, f_print pf_print,
switch
(
i_print_type
)
{
switch
(
i_print_type
)
{
case
PRINT_XML
:
case
PRINT_XML
:
pf_print
(
opaque
,
pf_print
(
opaque
,
"<ANCILLARY_DATA_DESC
"
"<ANCILLARY_DATA_DESC"
" ancillary_data_indentifier=
\"
0x%02x
\"
"
" ancillary_data_indentifier=
\"
0x%02x
\"
"
" dvd_video_ancillary_data_flag=
\"
%u
\"
"
" dvd_video_ancillary_data_flag=
\"
%u
\"
"
" extended_ancillary_data_flag=
\"
%u
\"
"
" extended_ancillary_data_flag=
\"
%u
\"
"
...
...
examples/dvb_print_si.output.txt
View file @
7d74b4aa
...
@@ -327,7 +327,7 @@ new PMT program=20000 version=1 pcrpid=110
...
@@ -327,7 +327,7 @@ new PMT program=20000 version=1 pcrpid=110
- desc 26 metadata metadata_application_format=0xffff metadata_application_format_identifier=0x00112233 metadata_format=0xff metadata_format_identifier=0xdeadbeaf metadata_service_id=0x88 dsm_cc_flag=1 service_identification_record_length=3 service_identification_record="616263" decoder_config_flags=3 dec_config_identification_record_length=3 dec_config_identification_record_data="414243" decoder_config_metadata_service_id=0
- desc 26 metadata metadata_application_format=0xffff metadata_application_format_identifier=0x00112233 metadata_format=0xff metadata_format_identifier=0xdeadbeaf metadata_service_id=0x88 dsm_cc_flag=1 service_identification_record_length=3 service_identification_record="616263" decoder_config_flags=3 dec_config_identification_record_length=3 dec_config_identification_record_data="414243" decoder_config_metadata_service_id=0
- desc 28 avc_video profile_idc=0x12 constraint_set0_flag=1 constraint_set1_flag=1 constraint_set2_flag=0 AVC_compatible_flags=0x0a level_idc=0x34 AVC_still_present=0 AVC_24_hour_picture_flag=0
- desc 28 avc_video profile_idc=0x12 constraint_set0_flag=1 constraint_set1_flag=1 constraint_set2_flag=0 AVC_compatible_flags=0x0a level_idc=0x34 AVC_still_present=0 AVC_24_hour_picture_flag=0
- desc 2a avc_timing_and_hrd hrd_management_valid_flag=0 picture_and_timing_info_present=1 flag_90khz=0 N=12345678 K=34567890 num_units_in_tick=456789 fixed_frame_rate_flag=1 temporal_poc_flag=0 picture_to_display_conversion_flag=1
- desc 2a avc_timing_and_hrd hrd_management_valid_flag=0 picture_and_timing_info_present=1 flag_90khz=0 N=12345678 K=34567890 num_units_in_tick=456789 fixed_frame_rate_flag=1 temporal_poc_flag=0 picture_to_display_conversion_flag=1
- desc 6b ancillary_data ancillary_data_indentifier=0x
ab
dvd_video_ancillary_data_flag=1 extended_ancillary_data_flag=0 announcement_switching_data_flag=1 dab_ancillary_data_flag=0 scale_factor_error_check_flag=1 mpeg4_ancillary_data_flag=0 rds_via_uecp_flag=1
- desc 6b ancillary_data ancillary_data_indentifier=0x
d5
dvd_video_ancillary_data_flag=1 extended_ancillary_data_flag=0 announcement_switching_data_flag=1 dab_ancillary_data_flag=0 scale_factor_error_check_flag=1 mpeg4_ancillary_data_flag=0 rds_via_uecp_flag=1
* ES pid=127 streamtype=0x0f streamtype_txt="13818-7 Audio with ADTS transport syntax"
* ES pid=127 streamtype=0x0f streamtype_txt="13818-7 Audio with ADTS transport syntax"
- desc 42 stuffing length=4
- desc 42 stuffing length=4
- desc 2b mpeg2_aac_audio profile=0x12 channel_config=0x05 additional_info=0x00
- desc 2b mpeg2_aac_audio profile=0x12 channel_config=0x05 additional_info=0x00
...
...
examples/dvb_print_si.output.xml
View file @
7d74b4aa
...
@@ -592,8 +592,8 @@
...
@@ -592,8 +592,8 @@
<DESC
id=
"0x2a"
length=
"15"
value=
"7f7f00bc614e020f76d20006f855bf"
>
<DESC
id=
"0x2a"
length=
"15"
value=
"7f7f00bc614e020f76d20006f855bf"
>
<AVC_TIMING_AND_HRD_DESC
hrd_management_valid_flag=
"0"
picture_and_timing_info_present=
"1"
flag_90khz=
"0"
N=
"12345678"
K=
"34567890"
num_units_in_tick=
"456789"
fixed_frame_rate_flag=
"1"
temporal_poc_flag=
"0"
picture_to_display_conversion_flag=
"1"
/>
<AVC_TIMING_AND_HRD_DESC
hrd_management_valid_flag=
"0"
picture_and_timing_info_present=
"1"
flag_90khz=
"0"
N=
"12345678"
K=
"34567890"
num_units_in_tick=
"456789"
fixed_frame_rate_flag=
"1"
temporal_poc_flag=
"0"
picture_to_display_conversion_flag=
"1"
/>
</DESC>
</DESC>
<DESC
id=
"0x6b"
length=
"1"
value=
"
ab
"
>
<DESC
id=
"0x6b"
length=
"1"
value=
"
d5
"
>
<ANCILLARY_DATA_DESC
ancillary_data_indentifier=
"0xab
"
dvd_video_ancillary_data_flag=
"1"
extended_ancillary_data_flag=
"0"
announcement_switching_data_flag=
"1"
dab_ancillary_data_flag=
"0"
scale_factor_error_check_flag=
"1"
mpeg4_ancillary_data_flag=
"0"
rds_via_uecp_flag=
"1"
/>
<ANCILLARY_DATA_DESC
ancillary_data_indentifier=
"0xd5
"
dvd_video_ancillary_data_flag=
"1"
extended_ancillary_data_flag=
"0"
announcement_switching_data_flag=
"1"
dab_ancillary_data_flag=
"0"
scale_factor_error_check_flag=
"1"
mpeg4_ancillary_data_flag=
"0"
rds_via_uecp_flag=
"1"
/>
</DESC>
</DESC>
</ES>
</ES>
<ES
pid=
"127"
streamtype=
"0x0f"
streamtype_txt=
"13818-7 Audio with ADTS transport syntax"
>
<ES
pid=
"127"
streamtype=
"0x0f"
streamtype_txt=
"13818-7 Audio with ADTS transport syntax"
>
...
...
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