From 7630f579e18cc122fabdcca3a7c113c8dcbd7632 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 23 Jun 2020 09:27:09 +0200 Subject: Added support for HEVC-video and AC-4-audio --- eit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'eit.c') diff --git a/eit.c b/eit.c index ffdec419..38662a56 100644 --- a/eit.c +++ b/eit.c @@ -8,7 +8,7 @@ * Robert Schneider and Rolf Hakenes . * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg . * - * $Id: eit.c 4.9 2020/05/04 13:02:14 kls Exp $ + * $Id: eit.c 4.10 2020/06/23 09:27:09 kls Exp $ */ #include "eit.h" @@ -302,11 +302,15 @@ cEIT::cEIT(cSectionSyncerHash &SectionSyncerHash, int Source, u_char Tid, const case SI::ComponentDescriptorTag: { SI::ComponentDescriptor *cd = (SI::ComponentDescriptor *)d; uchar Stream = cd->getStreamContent(); + uchar Ext = cd->getStreamContentExt(); uchar Type = cd->getComponentType(); - if (1 <= Stream && Stream <= 6 && Type != 0) { // 1=MPEG2-video, 2=MPEG1-audio, 3=subtitles, 4=AC3-audio, 5=H.264-video, 6=HEAAC-audio + if ((1 <= Stream && Stream <= 6 && Type != 0) // 1=MPEG2-video, 2=MPEG1-audio, 3=subtitles, 4=AC3-audio, 5=H.264-video, 6=HEAAC-audio + || (Stream == 9 && Ext < 2)) { // 0x09=HEVC-video, 0x19=AC-4-audio if (!Components) Components = new cComponents; char buffer[Utf8BufSize(256)]; + if (Stream == 9) + Stream |= Ext << 4; Components->SetComponent(Components->NumComponents(), Stream, Type, I18nNormalizeLanguageCode(cd->languageCode), cd->description.getText(buffer, sizeof(buffer))); } } -- cgit v1.2.3