mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d8a8e37988 | ||
|
40a7b8505a | ||
|
514ee9e63a | ||
|
262c266637 |
11
HISTORY
11
HISTORY
@ -2433,3 +2433,14 @@ Video Disk Recorder Revision History
|
||||
full (suggested by Emil Naepflein).
|
||||
- Channel IDs are now checked when reading 'channels.conf' to avoid later
|
||||
problems with timers.
|
||||
|
||||
2003-10-19: Version 1.2.6pre2
|
||||
|
||||
- Improved cDvbDevice::StillPicture() (thanks to Thomas Heiligenmann).
|
||||
|
||||
2003-10-24: Version 1.2.6pre3
|
||||
|
||||
- Improved cDvbDevice::StillPicture() (thanks to Oliver Endriss).
|
||||
- Continuing learning remote control keys in case one rc fails (thanks to
|
||||
Oliver Endriss).
|
||||
- Fixed handling comments in editing marks.
|
||||
|
4
config.h
4
config.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: config.h 1.176 2003/10/17 12:35:23 kls Exp $
|
||||
* $Id: config.h 1.176.1.2 2003/10/24 14:31:17 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __CONFIG_H
|
||||
@ -19,7 +19,7 @@
|
||||
#include "device.h"
|
||||
#include "tools.h"
|
||||
|
||||
#define VDRVERSION "1.2.6pre1"
|
||||
#define VDRVERSION "1.2.6pre3"
|
||||
#define VDRVERSNUM 10206 // Version * 10000 + Major * 100 + Minor
|
||||
|
||||
#define MAXPRIORITY 99
|
||||
|
14
dvbdevice.c
14
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.67 2003/10/17 15:36:13 kls Exp $
|
||||
* $Id: dvbdevice.c 1.67.1.2 2003/10/24 14:32:20 kls Exp $
|
||||
*/
|
||||
|
||||
#include "dvbdevice.h"
|
||||
@ -957,10 +957,14 @@ void cDvbDevice::StillPicture(const uchar *Data, int Length)
|
||||
// skip header extension
|
||||
if ((Data[i + 6] & 0xC0) == 0x80) {
|
||||
// MPEG-2 PES header
|
||||
if (Data[i + 8] >= Length)
|
||||
break;
|
||||
offs += 3;
|
||||
offs += Data[i + 8];
|
||||
len -= 3;
|
||||
len -= Data[i + 8];
|
||||
if (len < 0 || offs + len > Length)
|
||||
break;
|
||||
}
|
||||
else {
|
||||
// MPEG-1 PES header
|
||||
@ -968,19 +972,19 @@ void cDvbDevice::StillPicture(const uchar *Data, int Length)
|
||||
offs++;
|
||||
len--;
|
||||
}
|
||||
if ((Data[offs] & 0xC0) == 0x40) {
|
||||
if (offs <= Length - 2 && len >= 2 && (Data[offs] & 0xC0) == 0x40) {
|
||||
offs += 2;
|
||||
len -= 2;
|
||||
}
|
||||
if ((Data[offs] & 0xF0) == 0x20) {
|
||||
if (offs <= Length - 5 && len >= 5 && (Data[offs] & 0xF0) == 0x20) {
|
||||
offs += 5;
|
||||
len -= 5;
|
||||
}
|
||||
else if ((Data[offs] & 0xF0) == 0x30) {
|
||||
else if (offs <= Length - 10 && len >= 10 && (Data[offs] & 0xF0) == 0x30) {
|
||||
offs += 10;
|
||||
len -= 10;
|
||||
}
|
||||
else if (Data[offs] == 0x0F) {
|
||||
else if (offs < Length && len > 0) {
|
||||
offs++;
|
||||
len--;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: interface.c 1.65 2003/10/05 09:48:13 kls Exp $
|
||||
* $Id: interface.c 1.65.1.1 2003/10/24 15:48:00 kls Exp $
|
||||
*/
|
||||
|
||||
#include "interface.h"
|
||||
@ -433,7 +433,7 @@ void cInterface::LearnKeys(void)
|
||||
Clear();
|
||||
if (!rc) {
|
||||
Close();
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
WriteText(1, 1, Headline);
|
||||
WriteText(1, 3, tr("Phase 3: Saving key codes"));
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recording.c 1.84 2003/10/17 14:36:58 kls Exp $
|
||||
* $Id: recording.c 1.84.1.1 2003/10/24 15:49:00 kls Exp $
|
||||
*/
|
||||
|
||||
#include "recording.h"
|
||||
@ -681,10 +681,8 @@ bool cMark::Parse(const char *s)
|
||||
const char *p = strchr(s, ' ');
|
||||
if (p) {
|
||||
p = skipspace(p);
|
||||
if (*p) {
|
||||
if (*p)
|
||||
comment = strdup(p);
|
||||
comment[strlen(comment) - 1] = 0; // strips trailing newline
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user