summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-04-05 10:45:01 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-04-05 10:45:01 +0200
commit5ee2a21c8a6c4a10713698f2ad50dc8bc2102aa4 (patch)
treeff4e1cf3827fcc1c5c4152dece80a01804388cc3 /dvbdevice.c
parent8114d7c63eaec8e5acca7fcc0a9afc2131f60e45 (diff)
downloadvdr-5ee2a21c8a6c4a10713698f2ad50dc8bc2102aa4.tar.gz
vdr-5ee2a21c8a6c4a10713698f2ad50dc8bc2102aa4.tar.bz2
Fixed a crash when jumping to an editing mark in an audio recording
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 56001917..a1b2cfc4 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 2.12 2009/01/10 10:07:33 kls Exp $
+ * $Id: dvbdevice.c 2.13 2009/04/05 10:42:59 kls Exp $
*/
#include "dvbdevice.h"
@@ -1206,6 +1206,8 @@ void cDvbDevice::Mute(void)
void cDvbDevice::StillPicture(const uchar *Data, int Length)
{
+ if (!Data || Length < TS_SIZE)
+ return;
if (Data[0] == 0x47) {
// TS data
cDevice::StillPicture(Data, Length);