Fix casts of RTT info

This commit is contained in:
Cameron Gutman 2021-05-15 17:07:08 -05:00
parent e1f6b577bf
commit 9166998442

View File

@ -666,7 +666,7 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
sb.append(context.getString(R.string.perf_overlay_netdrops,
(float)lastTwo.framesLost / lastTwo.totalFrames * 100)).append('\n');
sb.append(context.getString(R.string.perf_overlay_netlatency,
(rttInfo >> 32) & 0xFFFF, rttInfo & 0xFFFF)).append('\n');
(int)(rttInfo >> 32), (int)rttInfo)).append('\n');
sb.append(context.getString(R.string.perf_overlay_recvtime,
((float)lastTwo.totalTimeMs / lastTwo.totalFramesReceived) - decodeTimeMs)).append('\n');
sb.append(context.getString(R.string.perf_overlay_dectime, decodeTimeMs));