From f31ee67ec0011ef7cb6add0893430dbd2f3e4fb7 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sun, 6 Feb 2011 13:40:38 +0100 Subject: Skipping additional private stream header with AC3 --- command/demux.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'command/demux.cpp') 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); -- cgit v1.2.3