From 71bcd626abd6f79bb8521837efd94461ec811545 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Fri, 28 Sep 2012 23:25:34 +0200 Subject: Added speedup for decoding H264/H262 Added fix for OSD message Added fix for 'ALERT: stopping before end of broadcast' Code cleanups --- command/demux.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'command/demux.cpp') diff --git a/command/demux.cpp b/command/demux.cpp index b136d17..5e7bf86 100644 --- a/command/demux.cpp +++ b/command/demux.cpp @@ -602,7 +602,7 @@ void cTS2Pkt::Clear(AvPacket *Pkt) Pkt->Type=0; Pkt->Stream=0; } - sync=false; + firstsync=sync=false; counter=-1; if (queue) queue->Clear(); } @@ -1186,7 +1186,7 @@ bool cDemux::vdraddpatpmt(uchar *data, int count) // a picture starts @376, vdr outputs 0 (!) int pid; if (checkts(data,count,pid)!=0) return false; - if ((!pid) || (pid==132)) + if ((!pid) || (pid==132)) // 0=PAT 132=PMT { last_bplen=0; vdroffset+=count; @@ -1242,10 +1242,7 @@ int cDemux::Process(uchar *Data, int Count, AvPacket *pkt) if ((raw) && (!Data) && (!Count)) { uchar Dummy[6]; - if (TS) - { - } - else + if (!TS) { Dummy[0]=0; Dummy[1]=0; -- cgit v1.2.3