Increase size of detect buffer (#330)

See issue #329 : when a track starts after the first 16 MB in the m2ts, it is not detected.
It is therefore proposed to increase the detect buffer (i.e. size of scanned chunk) to 64 MB.
This commit is contained in:
jcdr428 2020-09-02 00:21:03 +02:00 committed by GitHub
parent 20247206b8
commit 99e193c3bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class Process
#define bswap_32(x) my_ntohl(x)
//#define fabs(a) ((a)>=0?(a):-(a))
const static int DETECT_STREAM_BUFFER_SIZE = 1024 * 1024 * 16;
const static int DETECT_STREAM_BUFFER_SIZE = 1024 * 1024 * 64;
const static unsigned TS_PID_NULL = 8191;
const static unsigned TS_PID_PAT = 0;
const static unsigned TS_PID_PMT = 1;