_tsdata has only 4 entries. Indexing at 4 would cause an overrun.
From: Erik Hovland <erik@hovland.org>
---
libs/libmythtv/mpeg/tspacket.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/libmythtv/mpeg/tspacket.h b/libs/libmythtv/mpeg/tspacket.h
index 4d10c02..cb11e2b 100644
a
|
b
|
class TSHeader { |
75 | 75 | bool HasPayload() const { return bool(_tsdata[3] & 0x10); } |
76 | 76 | |
77 | 77 | unsigned int AFCOffset() const { // only works if AFC fits in TSPacket |
78 | | return HasAdaptationField() ? _tsdata[4]+1+4 : 4; |
| 78 | return HasAdaptationField() ? _tsdata[3]+1+4 : 4; |
79 | 79 | } |
80 | 80 | |
81 | 81 | void SetTransportError(bool err) { |