1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00

Fix AudioStream

This commit is contained in:
luvletter2333 2021-11-01 00:02:43 +08:00
parent 837a6543e0
commit 6aeb6f679e
No known key found for this signature in database
GPG Key ID: C37B5ACF60FFA643
2 changed files with 3 additions and 3 deletions

View File

@ -75,6 +75,7 @@ function build_one {
--enable-avresample \
--enable-swscale \
--enable-protocol=file \
--enable-decoder=opus \
--enable-decoder=h264 \
--enable-decoder=mpeg4 \
--enable-decoder=mjpeg \

View File

@ -298,9 +298,8 @@ public:
int outPcmSampleOffset = 0;
ReadPcmResult result;
if(_channelCount==0)
{
RTC_LOG(LS_WARNING) << "_channelCount == 0, returned.";
if (_channelCount == 0) {
RTC_LOG(LS_WARNING) << "ReadPcmResult readPcm: _channelCount == 0, returned.";
return result;
}