From 3d5c18c25a48f0c441d5da396650599f3f71cde1 Mon Sep 17 00:00:00 2001 From: PieerePi <40780488+PieerePi@users.noreply.github.com> Date: Mon, 30 Nov 2020 11:02:30 +0800 Subject: [PATCH] GB28181 code crashed in ffmpeg after commit "RTC: Use FFmpeg to transcode aac to opus" . (#2057) Change the size from 64K to 256K. --- trunk/src/app/srs_app_gb28181.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/app/srs_app_gb28181.cpp b/trunk/src/app/srs_app_gb28181.cpp index bfea9a007..a352ecd3a 100644 --- a/trunk/src/app/srs_app_gb28181.cpp +++ b/trunk/src/app/srs_app_gb28181.cpp @@ -1278,6 +1278,8 @@ SrsGb28181RtmpMuxer::SrsGb28181RtmpMuxer(SrsGb28181Manger* c, std::string id, bo pprint = SrsPithyPrint::create_caster(); trd = new SrsSTCoroutine("gb28181rtmpmuxer", this); + //change stack size to 256K, fix crash when call FFMpeg + ((SrsSTCoroutine*)trd)->set_stack_size(1 << 18); sdk = NULL; vjitter = new SrsRtspJitter();