summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--command/demux.cpp8
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);