From 859de4e28a3ca1d70fe9ad7988aca546d7f691da Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 29 Jun 2010 16:30:47 +0200 Subject: even better check for valid input data --- dxr3device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dxr3device.c') 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) { -- cgit v1.2.3