mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01: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:
@@ -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
|
// for frames held in queues inside the ffmpeg utility. If this
|
||||||
// can ever dynamically change then the corresponding decode
|
// can ever dynamically change then the corresponding decode
|
||||||
// code needs to be updated as well.
|
// 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,
|
tq = tq_alloc(nb_streams, queue_size,
|
||||||
|
|||||||
Reference in New Issue
Block a user