mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
修正Windows下宏替换编译错误问题
This commit is contained in:
parent
09fa6b7aae
commit
f1d89b5297
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user