mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
This change will activate multi-threading for software based decoder. Color conversion is still single threaded and also not being performed by OpenGL. Since the way ffmpeg inits the HW decoding, we can't 100% valdiate if a hw decoder will play a file or not. Since we need to know before calling avcodec_open2() if we want to either multi-thread via software or HW decode, we will only run single-threaded in case of a late fallback. This happens for example in off cases when my AMD vega based graphic card reports that it could HW decode VP9 video but in reality can't (which is catched in callback get_format() and after avcodec_open2((). There is currently no good solution in sight, since we can't reconfigure the decoding context at that point of time.