mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
fftools/ffmpeg_sched: relax queue size assertion
The code in the decoder just cares about allocating enough extra hw frames to cover the size of the queue; but there's no reason we actually *have* to use this many. We can safely relax the assertion to a <= check.
This commit is contained in:
parent
1608aa38a2
commit
15407cf90b
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ static int queue_alloc(ThreadQueue **ptq, unsigned nb_streams, unsigned queue_si
|
|||
// for frames held in queues inside the ffmpeg utility. If this
|
||||
// can ever dynamically change then the corresponding decode
|
||||
// code needs to be updated as well.
|
||||
av_assert0(queue_size == DEFAULT_FRAME_THREAD_QUEUE_SIZE);
|
||||
av_assert0(queue_size <= DEFAULT_FRAME_THREAD_QUEUE_SIZE);
|
||||
}
|
||||
|
||||
tq = tq_alloc(nb_streams, queue_size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue