Ticket #8549: 8549-v1.patch
File 8549-v1.patch, 4.6 KB (added by , 14 years ago) |
---|
-
libs/libmythtv/firewiredevice.cpp
329 329 330 330 void FirewireDevice::ProcessPATPacket(const TSPacket &tspacket) 331 331 { 332 if (!tspacket.TransportError() && !tspacket.Scram plingControl() &&332 if (!tspacket.TransportError() && !tspacket.Scrambled() && 333 333 tspacket.HasPayload() && tspacket.PayloadStart() && !tspacket.PID()) 334 334 { 335 335 PESPacket pes = PESPacket::View(tspacket); -
libs/libmythtv/firewirerecorder.cpp
127 127 if (tspacket.TransportError()) 128 128 return; 129 129 130 if (tspacket.Scram plingControl())130 if (tspacket.Scrambled()) 131 131 return; 132 132 133 133 if (tspacket.HasAdaptationField()) -
libs/libmythtv/mpeg/mpegstreamdata.cpp
891 891 if (!psip->IsCurrent()) // we don't cache the next table, for now 892 892 DONE_WITH_PES_PACKET(); 893 893 894 if (tspacket->Scram plingControl())894 if (tspacket->Scrambled()) 895 895 { // scrambled! ATSC, DVB require tables not to be scrambled 896 896 VERBOSE(VB_RECORD, 897 897 "PSIP packet is scrambled, not ATSC/DVB compiant"); … … 975 975 if (!ok) 976 976 return false; 977 977 978 if (!tspacket.Scram plingControl() && tspacket.HasPayload())978 if (!tspacket.Scrambled() && tspacket.HasPayload()) 979 979 { 980 980 if (IsVideoPID(tspacket.PID())) 981 981 { … … 1004 1004 HandleTSTables(&tspacket); 1005 1005 } 1006 1006 } 1007 else if (!tspacket.Scram plingControl() && IsWritingPID(tspacket.PID()))1007 else if (!tspacket.Scrambled() && IsWritingPID(tspacket.PID())) 1008 1008 { 1009 1009 // PCRPID and other streams we're writing may not have payload... 1010 1010 for (uint j = 0; j < _ts_writing_listeners.size(); j++) … … 1728 1728 1729 1729 CryptStatus status = kEncUnknown; 1730 1730 1731 if (tspacket.Scram plingControl())1731 if (tspacket.Scrambled()) 1732 1732 { 1733 1733 info.decrypted_packets = 0; 1734 1734 -
libs/libmythtv/mpeg/tspacket.cpp
39 39 str.append(" payloadStart: %1\n").arg( PayloadStart() ); 40 40 str.append(" priority: %1\n").arg( Priority() ); 41 41 str.append(" pid: %1\n").arg( PID() ); 42 str.append(" scrampled: %1\n").arg( ScramplingControl() );42 str.append(" scrambled (if>1): %1\n").arg( ScramblingControl() ); 43 43 str.append(" adaptationFieldControl: %1\n").arg( AdaptationFieldControl() ); 44 44 str.append(" continuityCounter: %1\n").arg( ContinuityCounter() ); 45 45 return str; -
libs/libmythtv/mpeg/tspacket.h
67 67 return ((_tsdata[1] << 8) + _tsdata[2]) & 0x1fff; 68 68 } 69 69 //3.0 2 bit transport_scrambling_control (00,01 OK; 10,11 scrambled) 70 unsigned int Scram plingControl() const { return (_tsdata[3] >> 6) & 0x3; }70 unsigned int ScramblingControl() const { return (_tsdata[3] >> 6) & 0x3; } 71 71 //3.2 2 bit adaptation_field_control 72 72 // (01-no adaptation field,payload only 73 73 // 10-adaptation field only,no payload … … 82 82 unsigned int ContinuityCounter() const { return _tsdata[3] & 0xf; } 83 83 84 84 // shortcuts 85 bool Scram pled() const { return bool(_tsdata[3]&0x80); }85 bool Scrambled() const { return bool(_tsdata[3]&0x80); } 86 86 bool HasAdaptationField() const { return bool(_tsdata[3] & 0x20); } 87 87 bool HasPayload() const { return bool(_tsdata[3] & 0x10); } 88 88 -
libs/libmythtv/iptvrecorder.cpp
209 209 if (!_stream_data) 210 210 return; 211 211 212 if (tspacket.TransportError() || tspacket.Scram plingControl())212 if (tspacket.TransportError() || tspacket.Scrambled()) 213 213 return; 214 214 215 215 if (tspacket.HasAdaptationField())