summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dxr3device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dxr3device.c b/dxr3device.c
index dc2d353..d4bdf44 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -211,7 +211,7 @@ void cDxr3Device::StillPicture(const uchar *Data, int Length)
// frame or to non-pes data. This could be the
// case for the radio-Plugin, which points to an
// elementary stream.
- if (!Data)
+ if (!Data || Length < TS_SIZE)
return;
if (Data[0] == 0x47) {