summaryrefslogtreecommitdiff
path: root/command/demux.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-09-28 23:25:34 +0200
committerJochen Dolze <vdr@dolze.de>2012-09-28 23:25:34 +0200
commit71bcd626abd6f79bb8521837efd94461ec811545 (patch)
tree14dbb1ae4830b630fed083f9a3d344df8c244d47 /command/demux.cpp
parent82920ea01d29d74894dae87a868e63b8d0acb717 (diff)
downloadvdr-plugin-markad-71bcd626abd6f79bb8521837efd94461ec811545.tar.gz
vdr-plugin-markad-71bcd626abd6f79bb8521837efd94461ec811545.tar.bz2
Added speedup for decoding H264/H262
Added fix for OSD message Added fix for 'ALERT: stopping before end of broadcast' Code cleanups
Diffstat (limited to 'command/demux.cpp')
-rw-r--r--command/demux.cpp9
1 files changed, 3 insertions, 6 deletions
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;