diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-02-06 13:40:38 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-02-06 13:40:38 +0100 |
commit | f31ee67ec0011ef7cb6add0893430dbd2f3e4fb7 (patch) | |
tree | 7212999291e89200068d34e64b44446eb6682ee6 /command/demux.cpp | |
parent | dd033d767434ba7266856de0bcc8d16c372f2220 (diff) | |
download | vdr-plugin-markad-f31ee67ec0011ef7cb6add0893430dbd2f3e4fb7.tar.gz vdr-plugin-markad-f31ee67ec0011ef7cb6add0893430dbd2f3e4fb7.tar.bz2 |
Skipping additional private stream header with AC3
Diffstat (limited to 'command/demux.cpp')
-rw-r--r-- | command/demux.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/command/demux.cpp b/command/demux.cpp index f185935..c66d956 100644 --- a/command/demux.cpp +++ b/command/demux.cpp @@ -809,6 +809,14 @@ bool cPES2ES::Process(uchar *PESData, int PESSize, AvPacket *ESPkt) buf=&PESData[bpos]; buflen=PESSize-bpos; } + if ((ptype==PACKET_AC3) && (buflen>6)) + { + if ((buf[4]==0x0B) && (buf[5]==0x77)) + { + buf+=4; + buflen-=4; + } + } queue->Put(buf,buflen); } ESPkt->Data=queue->GetPacket(&ESPkt->Length,ptype); |