summaryrefslogtreecommitdiff
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
parent8114d7c63eaec8e5acca7fcc0a9afc2131f60e45 (diff)
downloadvdr-5ee2a21c8a6c4a10713698f2ad50dc8bc2102aa4.tar.gz
vdr-5ee2a21c8a6c4a10713698f2ad50dc8bc2102aa4.tar.bz2
Fixed a crash when jumping to an editing mark in an audio recording
-rw-r--r--HISTORY1
-rw-r--r--dvbdevice.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 6303e572..120f1ba5 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6017,3 +6017,4 @@ Video Disk Recorder Revision History
- Added missing virtual destructor to cPalette.
- Now freeing configDirectory before setting it to a new value in
cPlugin::SetConfigDirectory().
+- Fixed a crash when jumping to an editing mark in an audio recording.
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);