From: Michael Kuron <1748330+mkuron@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:45:51 +0000 (+0200) Subject: dvb_psi_pmt: Don't recognize extension descriptor as AC-4 audio X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec0469c199783f261e852a66d289906ea5097d86;p=thirdparty%2Ftvheadend.git dvb_psi_pmt: Don't recognize extension descriptor as AC-4 audio --- diff --git a/src/input/mpegts/dvb.h b/src/input/mpegts/dvb.h index 311e27cd5..4749f790e 100644 --- a/src/input/mpegts/dvb.h +++ b/src/input/mpegts/dvb.h @@ -167,7 +167,7 @@ struct lang_str; #define DVB_DESC_CRID 0x76 #define DVB_DESC_EAC3 0x7A #define DVB_DESC_AAC 0x7C -#define DVB_DESC_AC4 0x7F +#define DVB_DESC_EXTENSION 0x7F #define DVB_DESC_BSKYB_LCN 0xB1 diff --git a/src/input/mpegts/dvb_psi_pmt.c b/src/input/mpegts/dvb_psi_pmt.c index df14f47ec..fff6919e5 100644 --- a/src/input/mpegts/dvb_psi_pmt.c +++ b/src/input/mpegts/dvb_psi_pmt.c @@ -249,6 +249,7 @@ dvb_psi_parse_pmt int tt_position; int video_stream; int rds_uecp; + int ac4; int pcr_shared = 0; const char *lang; uint8_t audio_type, audio_version; @@ -311,6 +312,7 @@ dvb_psi_parse_pmt composition_id = -1; ancillary_id = -1; rds_uecp = 0; + ac4 = 0; position = 0; tt_position = 1000; lang = NULL; @@ -439,8 +441,14 @@ dvb_psi_parse_pmt hts_stream_type = SCT_EAC3; break; - case DVB_DESC_AC4: - if(estype == 0x06 || estype == 0x81) + case DVB_DESC_EXTENSION: + if(dlen < 1) + break; + + if(ptr[0] == 0x15) /* descriptor_tag_extension : AC-4 */ + ac4 = 1; + + if((estype == 0x06 || estype == 0x81) && ac4) hts_stream_type = SCT_AC4; break;