diff --git a/package/encode_app/src/main.cpp b/package/encode_app/src/main.cpp index c7f8907..7383b5f 100755 --- a/package/encode_app/src/main.cpp +++ b/package/encode_app/src/main.cpp @@ -1602,8 +1602,8 @@ static void *audio_process(void *arg) nG711Len = encode(pCtx->audio_buffer,(char*)sEncAudioBuf,pCtx->audio_size,G711_A_LAW); if(nG711Len > 0) { - //printf("=========audio g711 size:%d\n",nG711Len); - pCtx->pRtspServer[0]->PushAudioData(sEncAudioBuf, nG711Len, 0); + for(int i =0;i ch_cnt; i++) + pCtx->pRtspServer[i]->PushAudioData(sEncAudioBuf, nG711Len, 0); } if(received_sigterm == 1)