The array _pid_status should have enough room for the 'null' pid since it is possible for that pid to come through the system.

From: Erik Hovland <erik@hovland.org>


---

 libs/libmythtv/mpegrecorder.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/libmythtv/mpegrecorder.h b/libs/libmythtv/mpegrecorder.h
index 485f780..3782d00 100644
--- a/libs/libmythtv/mpegrecorder.h
+++ b/libs/libmythtv/mpegrecorder.h
@@ -109,9 +109,9 @@ class MpegRecorder : public DTVRecorder,
 
     // TS
     MPEGStreamData *_stream_data;
-    unsigned char   _stream_id[0x1fff];
-    unsigned char   _pid_status[0x1fff];
-    unsigned char   _continuity_counter[0x1fff];
+    unsigned char   _stream_id[0x1fff  + 1];
+    unsigned char   _pid_status[0x1fff + 1];
+    unsigned char   _continuity_counter[0x1fff + 1];
     static const unsigned char kPayloadStartSeen = 0x2;
 
     // Statistics
