A few mistakes were made in the comments. This patch is meant to fix them.
From: Erik Hovland <erik@hovland.org>
---
libs/libmythtv/mpeg/tspacket.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/libmythtv/mpeg/tspacket.h b/libs/libmythtv/mpeg/tspacket.h
index ca086f8..4e46f83 100644
|
a
|
b
|
class TSHeader {
|
| 57 | 57 | //3.0 2 bit transport_scrambling_control (00,01 OK; 10,11 scrambled) |
| 58 | 58 | unsigned int ScramplingControl() const { return (_tsdata[3] >> 6) & 0x3; } |
| 59 | 59 | //3.2 2 bit adaptation_field_control |
| 60 | | // (01-no adptation field,payload only |
| | 60 | // (01-no adaptation field,payload only |
| 61 | 61 | // 10-adaptation field only,no payload |
| 62 | 62 | // 11-adaptation field followed by payload |
| 63 | 63 | // 00-reserved) |
| … |
… |
class TSPacket : public TSHeader
|
| 141 | 141 | return HasAdaptationField() ? _tspayload[0]+1+4 : 4; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | | //4.0 8 bits, iff payloadStart(), points to start of field |
| | 144 | //4.0 8 bits, if payloadStart(), points to start of field |
| 145 | 145 | unsigned int StartOfFieldPointer() const { return data()[AFCOffset()]; } |
| 146 | 146 | void SetStartOfFieldPointer(uint sof) { data()[AFCOffset()] = sof; } |
| 147 | 147 | |