From 27c061e449729f586d07c961e43691d2bc3105cb Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 13 Apr 2009 11:12:54 +0200 Subject: Made MAXFRAMESIZE a multiple of TS_SIZE to avoid breaking up TS packets --- recording.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recording.h') diff --git a/recording.h b/recording.h index 151e7602..50992ca3 100644 --- a/recording.h +++ b/recording.h @@ -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 -- cgit v1.2.3