Android MediaCodecVideoDecoder: Limit measured decode time to 200ms
This change is done to remove abnormally high decode time measurements for H264 decoding. H264 decoding sometimes keeps a few frames as reference before outputting a new decoded frame. This pipeline causes some frames to get stuck when the source stops sending new frames. When the source starts sending frames again, the decode time measurements for the frames that were stuck will include the pause time, which can be arbitrary high. This CL is a simple fix for this problem by constraining the decode time values to a "reasonable" range.
BUG=b/27306053
Review URL: https://codereview.webrtc.org/1725243007
Cr-Original-Commit-Position: refs/heads/master@{#11792}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: cedddbdf7b54541ce1786495ab9cc582b3ed58c4
1 file changed