Skip to content

Commit

Permalink
Sync up with moonlight-common-c
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrundman committed Nov 19, 2024
1 parent 1055eb8 commit 43c4581
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/streaming/audio/renderers/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int IAudioRenderer::stringifyAudioStats(AUDIO_STATS& stats, char *output, int le
output[offset] = 0;

double opusFrameSize = (double)m_opusConfig->samplesPerFrame / 48.0;
PRTP_AUDIO_STATS rtpAudioStats = LiGetRTPAudioStats();
const RTP_AUDIO_STATS* rtpAudioStats = LiGetRTPAudioStats();
double fecOverhead = (double)rtpAudioStats->packetCountFec * 1.0 / (rtpAudioStats->packetCountAudio + rtpAudioStats->packetCountFec);

int ret = snprintf(
Expand Down
2 changes: 1 addition & 1 deletion app/streaming/video/ffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ void FFmpegVideoDecoder::stringifyVideoStats(VIDEO_STATS& stats, char* output, i

if (stats.receivedFps > 0) {
if (m_VideoDecoderCtx != nullptr) {
PRTP_VIDEO_STATS rtpVideoStats = LiGetRTPVideoStats();
const RTP_VIDEO_STATS* rtpVideoStats = LiGetRTPVideoStats();
float fecOverhead = (float)rtpVideoStats->packetCountFec * 1.0 / (rtpVideoStats->packetCountVideo + rtpVideoStats->packetCountFec);
bool useKb = stats.videoMegabitsPerSec < 1 ? true : false;

Expand Down

0 comments on commit 43c4581

Please sign in to comment.