summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-06-23 09:27:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-06-23 09:27:09 +0200
commit7630f579e18cc122fabdcca3a7c113c8dcbd7632 (patch)
tree7a165fef2f99d1cd41dc373acac2f299abe3d0e3 /eit.c
parent8bd2ed1494bc466fcbfe8b21a879a7648c8f8cf3 (diff)
downloadvdr-7630f579e18cc122fabdcca3a7c113c8dcbd7632.tar.gz
vdr-7630f579e18cc122fabdcca3a7c113c8dcbd7632.tar.bz2
Added support for HEVC-video and AC-4-audio
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/eit.c b/eit.c
index ffdec419..38662a56 100644
--- a/eit.c
+++ b/eit.c
@@ -8,7 +8,7 @@
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
*
- * $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)));
}
}