From f1d89b5297dbd8f5aef24d733d189c7ea5596c68 Mon Sep 17 00:00:00 2001 From: lawrencehj <1934378145@qq.com> Date: Thu, 1 Jul 2021 10:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Windows=E4=B8=8B=E5=AE=8F?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- player/AudioSRC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/AudioSRC.cpp b/player/AudioSRC.cpp index bd18dd59..2dca791c 100644 --- a/player/AudioSRC.cpp +++ b/player/AudioSRC.cpp @@ -53,7 +53,7 @@ int AudioSRC::getPCMData(char *buf, int size) { if ((int)(size / _audio_cvt.len_ratio) != _origin_size) { _origin_size = size / _audio_cvt.len_ratio; - _origin_buf.reset(new char[std::max(_origin_size, size)], [](char *ptr) { + _origin_buf.reset(new char[(std::max)(_origin_size, size)], [](char *ptr) { delete[] ptr; }); InfoL << "origin pcm buffer size is:" << _origin_size << ", target pcm buffer size is:" << size;