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

dvbinfo : Dump functionality for the MPEG-4 audio descriptor

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent c8e69cd4
...@@ -302,6 +302,7 @@ static void handle_atsc_MGT(void *p_data, dvbpsi_atsc_mgt_t *p_mgt); ...@@ -302,6 +302,7 @@ static void handle_atsc_MGT(void *p_data, dvbpsi_atsc_mgt_t *p_mgt);
static void handle_atsc_EIT(void *p_data, dvbpsi_atsc_eit_t *p_eit); static void handle_atsc_EIT(void *p_data, dvbpsi_atsc_eit_t *p_eit);
static void handle_atsc_ETT(void* p_data, dvbpsi_atsc_ett_t *p_ett); static void handle_atsc_ETT(void* p_data, dvbpsi_atsc_ett_t *p_ett);
static void handle_atsc_STT(void* p_data, dvbpsi_atsc_stt_t *p_stt); static void handle_atsc_STT(void* p_data, dvbpsi_atsc_stt_t *p_stt);
static const char *AACProfileToString(dvbpsi_aac_profile_and_level_t profile);
/***************************************************************************** /*****************************************************************************
* mdate: current time in milliseconds * mdate: current time in milliseconds
...@@ -1037,6 +1038,14 @@ static void DumpMPEG4VideoDescriptor(const void *p_descriptor) ...@@ -1037,6 +1038,14 @@ static void DumpMPEG4VideoDescriptor(const void *p_descriptor)
mpeg4_descriptor->i_mpeg4_visual_profile_and_level); mpeg4_descriptor->i_mpeg4_visual_profile_and_level);
} }
static void DumpMPEG4AudioDescriptor(const void *p_descriptor)
{
const dvbpsi_mpeg4_audio_dr_t *mpeg4_descriptor = p_descriptor;
printf("MPEG-4 Audio Profile and Level : %s (0x%02x) \n",
AACProfileToString(mpeg4_descriptor->i_mpeg4_audio_profile_and_level),
mpeg4_descriptor->i_mpeg4_audio_profile_and_level);
}
/***************************************************************************** /*****************************************************************************
* DumpSystemClockDescriptor * DumpSystemClockDescriptor
*****************************************************************************/ *****************************************************************************/
...@@ -1642,6 +1651,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor) ...@@ -1642,6 +1651,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded = dvbpsi_DecodeMPEG4VideoDr(p_descriptor); p_decoded = dvbpsi_DecodeMPEG4VideoDr(p_descriptor);
dump_dr_fn = DumpMPEG4VideoDescriptor; dump_dr_fn = DumpMPEG4VideoDescriptor;
break; break;
case 0x1c:
p_decoded = dvbpsi_DecodeMPEG4AudioDr(p_descriptor);
dump_dr_fn = DumpMPEG4AudioDescriptor;
break;
case 0x4c: case 0x4c:
p_decoded = dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor); p_decoded = dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor);
dump_dr_fn = DumpTimeShiftedServiceDescriptor; dump_dr_fn = DumpTimeShiftedServiceDescriptor;
......
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