1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed the MEGABYTE() macro to make it correctly handle parameters resulting in values larger than 2GB

This commit is contained in:
Klaus Schmidinger 2009-04-18 09:37:54 +02:00
parent 5b57bdebdc
commit b83439b87e
2 changed files with 5 additions and 3 deletions

View File

@ -6031,7 +6031,7 @@ Video Disk Recorder Revision History
Oliver Endriss for reporting this). Oliver Endriss for reporting this).
- Improved efficiency of cEIT::cEIT() (thanks to Tobias Bratfisch). - Improved efficiency of cEIT::cEIT() (thanks to Tobias Bratfisch).
2009-04-13: Version 1.7.6 2009-04-18: Version 1.7.6
- cDevice::PlayTs() now syncs on the TS packet sync bytes. - cDevice::PlayTs() now syncs on the TS packet sync bytes.
- Made MAXFRAMESIZE a multiple of TS_SIZE to avoid breaking up TS packets. - Made MAXFRAMESIZE a multiple of TS_SIZE to avoid breaking up TS packets.
@ -6041,3 +6041,5 @@ Video Disk Recorder Revision History
(thanks to Helmut Auer). (thanks to Helmut Auer).
- Added cThread::SetIOPriority() and using it in cRemoveDeletedRecordingsThread - Added cThread::SetIOPriority() and using it in cRemoveDeletedRecordingsThread
(thanks to Rolf Ahrenberg). (thanks to Rolf Ahrenberg).
- Fixed the MEGABYTE() macro to make it correctly handle parameters resulting in
values larger than 2GB.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: tools.h 2.1 2008/05/22 10:26:57 kls Exp $ * $Id: tools.h 2.2 2009/04/14 20:41:39 kls Exp $
*/ */
#ifndef __TOOLS_H #ifndef __TOOLS_H
@ -38,7 +38,7 @@ extern int SysLogLevel;
#define SECSINDAY 86400 #define SECSINDAY 86400
#define KILOBYTE(n) ((n) * 1024) #define KILOBYTE(n) ((n) * 1024)
#define MEGABYTE(n) ((n) * 1024 * 1024) #define MEGABYTE(n) ((n) * 1024LL * 1024LL)
#define MALLOC(type, size) (type *)malloc(sizeof(type) * (size)) #define MALLOC(type, size) (type *)malloc(sizeof(type) * (size))