From 99e193c3bf4d0425358f3dcb31d1ebdb04a07aca Mon Sep 17 00:00:00 2001 From: jcdr428 <56721609+jcdr428@users.noreply.github.com> Date: Wed, 2 Sep 2020 00:21:03 +0200 Subject: [PATCH] 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. --- tsMuxer/vod_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsMuxer/vod_common.h b/tsMuxer/vod_common.h index 11d6e72..ab47e28 100644 --- a/tsMuxer/vod_common.h +++ b/tsMuxer/vod_common.h @@ -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;