mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Made MAXFRAMESIZE a multiple of TS_SIZE to avoid breaking up TS packets
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user