mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Disable bitrate reporting until FEC accuracy issues are resolved
This commit is contained in:
@@ -835,20 +835,29 @@ void FFmpegVideoDecoder::stringifyVideoStats(VIDEO_STATS& stats, char* output, i
|
|||||||
|
|
||||||
if (stats.receivedFps > 0) {
|
if (stats.receivedFps > 0) {
|
||||||
if (m_VideoDecoderCtx != nullptr) {
|
if (m_VideoDecoderCtx != nullptr) {
|
||||||
|
#ifdef DISPLAY_BITRATE
|
||||||
double avgVideoMbps = m_BwTracker.GetAverageMbps();
|
double avgVideoMbps = m_BwTracker.GetAverageMbps();
|
||||||
double peakVideoMbps = m_BwTracker.GetPeakMbps();
|
double peakVideoMbps = m_BwTracker.GetPeakMbps();
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = snprintf(&output[offset],
|
ret = snprintf(&output[offset],
|
||||||
length - offset,
|
length - offset,
|
||||||
"Video stream: %dx%d %.2f FPS (Codec: %s)\n"
|
"Video stream: %dx%d %.2f FPS (Codec: %s)\n"
|
||||||
"Bitrate: %.1f Mbps, Peak (%us): %.1f\n",
|
#ifdef DISPLAY_BITRATE
|
||||||
|
"Bitrate: %.1f Mbps, Peak (%us): %.1f\n"
|
||||||
|
#endif
|
||||||
|
,
|
||||||
m_VideoDecoderCtx->width,
|
m_VideoDecoderCtx->width,
|
||||||
m_VideoDecoderCtx->height,
|
m_VideoDecoderCtx->height,
|
||||||
stats.totalFps,
|
stats.totalFps,
|
||||||
codecString,
|
codecString
|
||||||
|
#ifdef DISPLAY_BITRATE
|
||||||
|
,
|
||||||
avgVideoMbps,
|
avgVideoMbps,
|
||||||
m_BwTracker.GetWindowSeconds(),
|
m_BwTracker.GetWindowSeconds(),
|
||||||
peakVideoMbps);
|
peakVideoMbps
|
||||||
|
#endif
|
||||||
|
);
|
||||||
if (ret < 0 || ret >= length - offset) {
|
if (ret < 0 || ret >= length - offset) {
|
||||||
SDL_assert(false);
|
SDL_assert(false);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user