avcodec: vaapi: use a sem to pace frames allocation
Recover the hw pool size from the first Get() call (after the AVCodecContext has been initialized) and use a semaphore to pace the picture allocation from Get(). That way, we don't rely anymore av_hwframe_get_buffer() return values, that returned the same error for internal error or when the pool was full. Fixes #26166
Loading
Please register or sign in to comment