mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added support for "registration descriptor" (cont'd)
This commit is contained in:
parent
6c176e0e7b
commit
5eef32b558
37
pat.c
37
pat.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: pat.c 2.14 2010/11/01 15:34:28 kls Exp $
|
* $Id: pat.c 2.15 2010/11/07 13:47:16 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pat.h"
|
#include "pat.h"
|
||||||
@ -456,34 +456,7 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x80: // STREAMTYPE_USER_PRIVATE
|
case 0x80 ... 0xFF: // STREAMTYPE_USER_PRIVATE
|
||||||
{
|
|
||||||
SI::Descriptor *d;
|
|
||||||
for (SI::Loop::Iterator it; (d = stream.streamDescriptors.getNext(it)); ) {
|
|
||||||
switch (d->getDescriptorTag()) {
|
|
||||||
case SI::RegistrationDescriptorTag: {
|
|
||||||
SI::RegistrationDescriptor *rd = (SI::RegistrationDescriptor *)d;
|
|
||||||
// http://www.smpte-ra.org/mpegreg/mpegreg.html
|
|
||||||
switch (rd->getFormatIdentifier()) {
|
|
||||||
case 0x44434949: // 'DCII' DigiChipher II
|
|
||||||
Vpid = esPid;
|
|
||||||
Ppid = pmt.getPCRPid();
|
|
||||||
Vtype = stream.getStreamType();
|
|
||||||
ProcessCaDescriptors = true;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
//printf("Format identifier: 0x08X\n", rd->getFormatIdentifier());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default: ;
|
|
||||||
}
|
|
||||||
delete d;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 0x81: // STREAMTYPE_USER_PRIVATE
|
|
||||||
{
|
{
|
||||||
char lang[MAXLANGCODE1] = { 0 };
|
char lang[MAXLANGCODE1] = { 0 };
|
||||||
bool IsAc3 = false;
|
bool IsAc3 = false;
|
||||||
@ -494,6 +467,12 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
|
|||||||
SI::RegistrationDescriptor *rd = (SI::RegistrationDescriptor *)d;
|
SI::RegistrationDescriptor *rd = (SI::RegistrationDescriptor *)d;
|
||||||
// http://www.smpte-ra.org/mpegreg/mpegreg.html
|
// http://www.smpte-ra.org/mpegreg/mpegreg.html
|
||||||
switch (rd->getFormatIdentifier()) {
|
switch (rd->getFormatIdentifier()) {
|
||||||
|
case 0x44434949: // 'DCII' aka. DigiCipher II
|
||||||
|
Vpid = esPid;
|
||||||
|
Ppid = pmt.getPCRPid();
|
||||||
|
Vtype = 0x02; // DCII compression is based upon MPEG-2
|
||||||
|
ProcessCaDescriptors = true;
|
||||||
|
break;
|
||||||
case 0x41432D33: // 'AC-3'
|
case 0x41432D33: // 'AC-3'
|
||||||
IsAc3 = true;
|
IsAc3 = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user