You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02: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