Skip to main content

DECODE_WORK_LIMIT

Constant DECODE_WORK_LIMIT 

Source
pub const DECODE_WORK_LIMIT: Duration;
Expand description

The longest a decoder operation (seek, next frame, open) may go without a step forward (a packet of its stream read, a packet accepted, or a frame) before failing with “decode progress budget exceeded”.

A call that blocks and then returns is such a step, so a slow read does not fail a decode that advances. A call that never returns is the stall watcher’s, which allows this plus its own GPU wait limit from the last watch_decode_progress report.