Skip to content

Video: a NAL unit is dropped when the decoder has no free input buffer within 5 ms #89

Closed

Description

@compot-dev

MediaCodecManager.decodeFrame waits up to 5 ms in dequeueInputBuffer; if no buffer is free, the NAL unit is silently dropped (counted as inputDropped since #84). A dropped slice corrupts the picture until the next key frame. #84/#85 now use these drops as the overload signal, but the drop itself should be avoided where possible: wait longer, or keep a small backlog and drop whole frames (preferably non-reference ones) instead of single NAL units.

Activity

  1. added
    bugSomething isn't working
    todayTasks for today
    in progressBeing worked on right now (open PR)
    on Oct 12, 2026
  2. added 2 commits that reference this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions