Commit f82c68f6 authored by Georgi Chorbadzhiyski's avatar Georgi Chorbadzhiyski

Fix XML printing of descriptors 0x2a, 0x2b and 0x2c.

parent ade98771
......@@ -263,7 +263,7 @@ new PMT program=20000 version=1 pcrpid=110
- desc 2c flexmux_timing fcr_es_id=0x1234 fcr_resolution=123456789 fcr_length=55 fmx_rate_length=66
* ES pid=126 streamtype=0x1b streamtype_txt="H.264/14496-10 video (MPEG-4/AVC)"
- 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 90khz_flag=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
* ES pid=127 streamtype=0x0f streamtype_txt="13818-7 Audio with ADTS transport syntax"
- desc 42 stuffing length=4
- desc 2b mpeg2_aac_audio profile=0x12 channel_config=0x05 additional_info=0x00
......
......@@ -465,7 +465,7 @@
<METADATA_STD_DESC input_leak_rate="12345" buffer_size="23456" output_leak_rate="34567"/>
</DESC>
<DESC id="0x2c" length="8" value="1234075bcd153742">
<FLEXMUX_TIMING_DESC fcr_es_id="0x1234" fcr_resolution="123456789" fcr_length="55" fmx_rate_length="66"
<FLEXMUX_TIMING_DESC fcr_es_id="0x1234" fcr_resolution="123456789" fcr_length="55" fmx_rate_length="66"/>
</DESC>
</ES>
<ES pid="126" streamtype="0x1b" streamtype_txt="H.264/14496-10 video (MPEG-4/AVC)">
......@@ -473,7 +473,7 @@
<AVC_VIDEO_DESC 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>
<DESC id="0x2a" length="15" value="7f7f00bc614e020f76d20006f855bf">
<AVC_TIMING_AND_HRD_DESC hrd_management_valid_flag="0" picture_and_timing_info_present="1" 90khz_flag="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>
</ES>
<ES pid="127" streamtype="0x0f" streamtype_txt="13818-7 Audio with ADTS transport syntax">
......@@ -481,7 +481,7 @@
<STUFFING_DESC length="4"/>
</DESC>
<DESC id="0x2b" length="3" value="120500">
<MPEG2_AAC_AUDIO_DESC profile="0x12" channel_config="0x05" additional_info="0x00"
<MPEG2_AAC_AUDIO_DESC profile="0x12" channel_config="0x05" additional_info="0x00"/>
</DESC>
</ES>
</PMT>
......
......@@ -231,7 +231,7 @@ static inline void desc2a_print(const uint8_t *p_desc, f_print pf_print,
case PRINT_XML:
pf_print(opaque,"<AVC_TIMING_AND_HRD_DESC hrd_management_valid_flag=\"%u\""
" picture_and_timing_info_present=\"%u\""
" 90khz_flag=\"%u\" N=\"%u\" K=\"%u\" num_units_in_tick=\"%u\""
" flag_90khz=\"%u\" N=\"%u\" K=\"%u\" num_units_in_tick=\"%u\""
" fixed_frame_rate_flag=\"%u\" temporal_poc_flag=\"%u\""
" picture_to_display_conversion_flag=\"%u\"/>",
desc2a_get_hrd_management_valid_flag(p_desc),
......@@ -248,7 +248,7 @@ static inline void desc2a_print(const uint8_t *p_desc, f_print pf_print,
default:
pf_print(opaque," - desc 2a avc_timing_and_hrd hrd_management_valid_flag=%u"
" picture_and_timing_info_present=%u"
" 90khz_flag=%u N=%u K=%u num_units_in_tick=%u"
" flag_90khz=%u N=%u K=%u num_units_in_tick=%u"
" fixed_frame_rate_flag=%u temporal_poc_flag=%u"
" picture_to_display_conversion_flag=%u",
desc2a_get_hrd_management_valid_flag(p_desc),
......
......@@ -93,7 +93,7 @@ static inline void desc2b_print(const uint8_t *p_desc, f_print pf_print,
switch (i_print_type) {
case PRINT_XML:
pf_print(opaque, "<MPEG2_AAC_AUDIO_DESC profile=\"0x%02x\""
" channel_config=\"0x%02x\" additional_info=\"0x%02x\"",
" channel_config=\"0x%02x\" additional_info=\"0x%02x\"/>",
desc2b_get_aac_profile(p_desc),
desc2b_get_aac_channel_config(p_desc),
desc2b_get_aac_additional_info(p_desc)
......
......@@ -107,7 +107,7 @@ static inline void desc2c_print(const uint8_t *p_desc, f_print pf_print,
switch (i_print_type) {
case PRINT_XML:
pf_print(opaque, "<FLEXMUX_TIMING_DESC fcr_es_id=\"0x%04x\""
" fcr_resolution=\"%u\" fcr_length=\"%u\" fmx_rate_length=\"%u\"",
" fcr_resolution=\"%u\" fcr_length=\"%u\" fmx_rate_length=\"%u\"/>",
desc2c_get_fcr_es_id(p_desc),
desc2c_get_fcr_resolution(p_desc),
desc2c_get_fcr_length(p_desc),
......
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