Skip to content

Commit

Permalink
Decoder: Reduce max pending frame count limit down to 5.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 473212543
  • Loading branch information
dway123 authored and marcbaechinger committed Oct 19, 2022
1 parent 593370b commit 41963fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ public int getMaxPendingFrameCount() {
// Some OMX decoders don't correctly track their number of output buffers available, and get
// stuck if too many frames are rendered without being processed, so limit the number of
// pending frames to avoid getting stuck. This value is experimentally determined. See also
// b/213455700, b/230097284, and b/229978305.
// b/213455700, b/230097284, b/229978305, and b/245491744.
// TODO(b/230097284): Add a maximum API check after we know which APIs will never use OMX.
return 10;
return 5;
}
// Otherwise don't limit the number of frames that can be pending at a time, to maximize
// throughput.
Expand Down

0 comments on commit 41963fc

Please sign in to comment.