diff options
Diffstat (limited to 'command')
-rw-r--r-- | command/demux.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/command/demux.cpp b/command/demux.cpp index 7670574..905c3e2 100644 --- a/command/demux.cpp +++ b/command/demux.cpp @@ -837,11 +837,19 @@ bool cPES2ES::Process(uchar *PESData, int PESSize, AvPacket *ESPkt) cDemux::cDemux(int VPid, int DPid, int APid, bool H264, bool VDRCount) { + TS=false; + if ((VPid>0) || (DPid>0) || (APid>0)) TS=true; + vpid=VPid; dpid=DPid; apid=APid; - TS=false; - if ((vpid>0) || (dpid>0) || (apid>0)) TS=true; + if (TS) + { + if (!vpid) vpid=-1; + if (!dpid) dpid=-1; + if (!apid) apid=-1; + } + pes2videoes=NULL; pes2audioes_mp2=NULL; pes2audioes_ac3=NULL; |