Remove `consecutive_error_count_` from DecoderStreamAdapter
When RTCVideoDecoderStreamAdapter detects that too many frames are pending decode, it resets once and increases the maximum threshold for underflow to allow the DecoderStream to restart. If it runs out of space a second time, then it'll fall back to software. Counting the number of consecutive failures (== without a decoded video frame) isn't meaningful; it can be at most two. It has a similar effect as the consecutive error count, though; after 40 frames input without one decoded frame, it will fall back to software decoding. Bug: 1150100 Change-Id: Ie846a98c4002153cde119a32b5bdb1485ed44fc7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591457Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Frank Liberato <liberato@chromium.org> Cr-Commit-Position: refs/heads/master@{#836932}
Showing
Please register or sign in to comment