Fix stream video

This commit is contained in:
luvletter2333 2021-10-31 22:09:13 +08:00
parent af9c719d69
commit ef9a38a104
No known key found for this signature in database
GPG Key ID: C37B5ACF60FFA643
3 changed files with 12 additions and 6 deletions

View File

@ -895,9 +895,9 @@ void Handshake::processHandshakeResponse(TLObject *message, int64_t messageId) {
}
void Handshake::sendAckRequest(int64_t messageId) {
/*auto msgsAck = new TL_msgs_ack();
auto msgsAck = new TL_msgs_ack();
msgsAck->msg_ids.push_back(messageId);
sendRequestData(msgsAck, false);*/
sendRequestData(msgsAck, false);
}
TLObject *Handshake::getCurrentHandshakeRequest() {

View File

@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.6.0)
#libvpx_yasm
#if (${ANDROID_ABI} STREQUAL "x86" OR ${ANDROID_ABI} STREQUAL "x86_64")
#add_library(libvpx_yasm STATIC IMPORTED)
#set_target_properties(libvpx_yasm PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/third_party/libvpx/source/libvpx/vpx_dsp/x86/libvpx_${ANDROID_ABI}_yasm.a)
#endif()
if (${ANDROID_ABI} STREQUAL "x86" OR ${ANDROID_ABI} STREQUAL "x86_64")
add_library(libvpx_yasm STATIC IMPORTED)
set_target_properties(libvpx_yasm PROPERTIES IMPORTED_LOCATION ${CMAKE_HOME_DIRECTORY}/third_party/libvpx/source/libvpx/vpx_dsp/x86/libvpx_${ANDROID_ABI}_yasm.a)
endif()
#tgvoip
add_library(tgvoip STATIC

View File

@ -298,6 +298,12 @@ public:
int outPcmSampleOffset = 0;
ReadPcmResult result;
if(_channelCount==0)
{
RTC_LOG(LS_WARNING) << "_channelCount == 0, returned.";
return result;
}
int readSamples = (int)outPcm.size() / _channelCount;
result.numChannels = _channelCount;