X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fpvrparse.cpp;fp=lib%2Fdvb%2Fpvrparse.cpp;h=5b7e790e98532f5437ffc51eb8b7a6ae4e1d3851;hp=173a77456a225d97e6ef3757646a0ed024fb2ec8;hb=46c144d3f294b74996cc9276528a9862e4d70efe;hpb=50e7a4d8e274532c6b0519d48f91a13757c7eaeb diff --git a/lib/dvb/pvrparse.cpp b/lib/dvb/pvrparse.cpp index 173a774..5b7e790 100755 --- a/lib/dvb/pvrparse.cpp +++ b/lib/dvb/pvrparse.cpp @@ -535,6 +535,12 @@ int eMPEGStreamParserTS::processPacket(const unsigned char *pkt, off_t offset) if (!(pkt[3] & 0x10)) /* no payload? */ return 0; + if (pkt[3] & 0xc0) + { + /* scrambled stream, we cannot parse pts */ + return 0; + } + if (pkt[3] & 0x20) // adaptation field present? pkt += pkt[4] + 4 + 1; /* skip adaptation field and header */ else