Added support for EAC3 audio from other sources

This commit is contained in:
Klaus Schmidinger 2019-03-15 13:10:33 +01:00
parent 27c0fffe7c
commit 4c7efcbd02
4 changed files with 10 additions and 4 deletions

View File

@ -2272,6 +2272,7 @@ J
in cKbdRemote
for reporting a possible discrepancy of the primary device number in the LSTD and
PRIM commands
for adding support for EAC3 audio from other sources
Christian Wieninger <cwieninger@gmx.de>
for suggesting to add cMenuEditStrItem::InEditMode()

View File

@ -9348,7 +9348,7 @@ Video Disk Recorder Revision History
Senzel).
- Official release.
2019-03-12: Version 2.4.1
2019-03-15: Version 2.4.1
- Fixed handling the tfRecording flag in the SVDRP commands MODT and UPDT (reported
by Johann Friedrichs).
@ -9380,3 +9380,4 @@ Video Disk Recorder Revision History
Helmut Binder).
- Fixed processing transponder data in the NIT (thanks to Helmut Binder).
- Fixed triggering the SDT filter when parsing the NIT (thanks to Helmut Binder).
- Added support for EAC3 audio from other sources (thanks to Jürgen Schneider).

6
pat.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: pat.c 4.4 2019/03/11 13:20:27 kls Exp $
* $Id: pat.c 4.5 2019/03/15 10:14:35 kls Exp $
*/
#include "pat.h"
@ -545,6 +545,7 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
}
// fall through
case 0x81: // STREAMTYPE_USER_PRIVATE
case 0x87: // eac3
if (Setup.StandardCompliance == STANDARD_ANSISCTE) { // ATSC A/53 AUDIO (ANSI/SCTE 57)
char lang[MAXLANGCODE1] = { 0 };
SI::Descriptor *d;
@ -575,7 +576,8 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
break;
}
// fall through
case 0x83 ... 0xFF: // STREAMTYPE_USER_PRIVATE
case 0x83 ... 0x86: // STREAMTYPE_USER_PRIVATE
case 0x88 ... 0xFF: // STREAMTYPE_USER_PRIVATE
{
char lang[MAXLANGCODE1] = { 0 };
bool IsAc3 = false;

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: remux.c 4.7 2017/04/29 12:25:09 kls Exp $
* $Id: remux.c 4.8 2019/03/15 10:14:35 kls Exp $
*/
#include "remux.h"
@ -839,9 +839,11 @@ void cPatPmtParser::ParsePmt(const uchar *Data, int Length)
break;
case 0x81: // STREAMTYPE_USER_PRIVATE - AC3 audio for ATSC and BD
case 0x82: // STREAMTYPE_USER_PRIVATE - DTS audio for BD
case 0x87: // eac3
{
dbgpatpmt(" %s",
stream.getStreamType() == 0x81 ? "AC3" :
stream.getStreamType() == 0x87 ? "AC3" :
stream.getStreamType() == 0x82 ? "DTS" : "");
char lang[MAXLANGCODE1] = { 0 };
SI::Descriptor *d;