<div dir="ltr"><div><div>Merged, thanks for contributing.<br><br></div>Kind regards,<br><br></div>Jean-Paul Saman</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 9:11 PM, Daniel Kamil Kozar <span dir="ltr"><<a href="mailto:dkk089@gmail.com" target="_blank">dkk089@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
examples/dvbinfo/libdvbpsi.c | 13 +++++++++++++<br>
1 file changed, 13 insertions(+)<br>
<br>
diff --git a/examples/dvbinfo/libdvbpsi.c b/examples/dvbinfo/libdvbpsi.c<br>
index b4aa78a..2615722 100644<br>
--- a/examples/dvbinfo/libdvbpsi.c<br>
+++ b/examples/dvbinfo/libdvbpsi.c<br>
@@ -302,6 +302,7 @@ static void handle_atsc_MGT(void *p_data, dvbpsi_atsc_mgt_t *p_mgt);<br>
static void handle_atsc_EIT(void *p_data, dvbpsi_atsc_eit_t *p_eit);<br>
static void handle_atsc_ETT(void* p_data, dvbpsi_atsc_ett_t *p_ett);<br>
static void handle_atsc_STT(void* p_data, dvbpsi_atsc_stt_t *p_stt);<br>
+static const char *AACProfileToString(dvbpsi_aac_profile_and_level_t profile);<br>
<br>
/*****************************************************************************<br>
* mdate: current time in milliseconds<br>
@@ -1037,6 +1038,14 @@ static void DumpMPEG4VideoDescriptor(const void *p_descriptor)<br>
mpeg4_descriptor->i_mpeg4_visual_profile_and_level);<br>
}<br>
<br>
+static void DumpMPEG4AudioDescriptor(const void *p_descriptor)<br>
+{<br>
+ const dvbpsi_mpeg4_audio_dr_t *mpeg4_descriptor = p_descriptor;<br>
+ printf("MPEG-4 Audio Profile and Level : %s (0x%02x) \n",<br>
+ AACProfileToString(mpeg4_descriptor->i_mpeg4_audio_profile_and_level),<br>
+ mpeg4_descriptor->i_mpeg4_audio_profile_and_level);<br>
+}<br>
+<br>
/*****************************************************************************<br>
* DumpSystemClockDescriptor<br>
*****************************************************************************/<br>
@@ -1642,6 +1651,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)<br>
p_decoded = dvbpsi_DecodeMPEG4VideoDr(p_descriptor);<br>
dump_dr_fn = DumpMPEG4VideoDescriptor;<br>
break;<br>
+ case 0x1c:<br>
+ p_decoded = dvbpsi_DecodeMPEG4AudioDr(p_descriptor);<br>
+ dump_dr_fn = DumpMPEG4AudioDescriptor;<br>
+ break;<br>
case 0x4c:<br>
p_decoded = dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor);<br>
dump_dr_fn = DumpTimeShiftedServiceDescriptor;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.3.3<br>
<br>
_______________________________________________<br>
libdvbpsi-devel mailing list<br>
<a href="mailto:libdvbpsi-devel@videolan.org">libdvbpsi-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libdvbpsi-devel" target="_blank">https://mailman.videolan.org/listinfo/libdvbpsi-devel</a><br>
</font></span></blockquote></div><br></div>