summaryrefslogtreecommitdiff
path: root/command/demux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/demux.cpp')
-rw-r--r--command/demux.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/command/demux.cpp b/command/demux.cpp
index 17008b9..991a82f 100644
--- a/command/demux.cpp
+++ b/command/demux.cpp
@@ -686,10 +686,16 @@ bool cTS2Pkt::Process(uchar *TSData, int TSSize, AvPacket *Pkt)
return true;
}
- if ((tshdr->TError) && (lasterror!=ERR_HDRBIT))
+ if (tshdr->TError)
{
- lasterror=ERR_HDRBIT;
- esyslog("stream error bit set (0x%04x)",pid);
+ if (lasterror!=ERR_HDRBIT) {
+ lasterror=ERR_HDRBIT;
+ esyslog("stream error bit set (0x%04x)",pid);
+ }
+ Clear(Pkt);
+ skipped+=queue->Skipped();
+ skipped+=TS_SIZE;
+ return true;
}
int buflen=TS_SIZE+1;