Made MAXFRAMESIZE a multiple of TS_SIZE to avoid breaking up TS packets

This commit is contained in:
Klaus Schmidinger
2009-04-13 11:12:54 +02:00
parent 3628bbbfa1
commit 27c061e449
3 changed files with 5 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.h 2.5 2009/02/28 10:50:12 kls Exp $
* $Id: recording.h 2.6 2009/04/13 11:10:50 kls Exp $
*/
#ifndef __RECORDING_H
@@ -207,7 +207,7 @@ public:
};
// The maximum size of a single frame (up to HDTV 1920x1080):
#define MAXFRAMESIZE KILOBYTE(512)
#define MAXFRAMESIZE (KILOBYTE(512) / TS_SIZE * TS_SIZE) // multiple of TS_SIZE to avoid breaking up TS packets
// The maximum file size is limited by the range that can be covered
// with a 40 bit 'unsigned int', which is 1TB. The actual maximum value