summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-10-24 15:46:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-10-24 15:46:33 +0200
commit2ab8af3dd50af15624207716fd46dc796f49c1c5 (patch)
tree0d7349614e616f6d7a303310dee1793f5607e970
parent27d95dfb3964552b4a69ac29d38c5fbd9a00fdc8 (diff)
downloadvdr-2ab8af3dd50af15624207716fd46dc796f49c1c5.tar.gz
vdr-2ab8af3dd50af15624207716fd46dc796f49c1c5.tar.bz2
Improved cDvbDevice::StillPicture() (cont'd)
-rw-r--r--HISTORY4
-rw-r--r--dvbdevice.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index e8856cad..2b33cdd9 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2438,6 +2438,10 @@ Video Disk Recorder Revision History
- Improved cDvbDevice::StillPicture() (thanks to Thomas Heiligenmann).
+2003-10-24: Version 1.2.6pre3
+
+- Improved cDvbDevice::StillPicture() (thanks to Oliver Endriss).
+
2003-10-24: Version 1.3.0
- Changed thread handling to make it work with NPTL ("Native Posix Thread Library").
diff --git a/dvbdevice.c b/dvbdevice.c
index 4cbbc759..b6d96b2c 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 1.69 2003/10/19 12:59:16 kls Exp $
+ * $Id: dvbdevice.c 1.70 2003/10/24 15:45:15 kls Exp $
*/
#include "dvbdevice.h"
@@ -962,7 +962,7 @@ void cDvbDevice::StillPicture(const uchar *Data, int Length)
offs += Data[i + 8];
len -= 3;
len -= Data[i + 8];
- if (len < 0 || offs + len >= Length)
+ if (len < 0 || offs + len > Length)
break;
}
else {