forked from mia/Aegisub
Force threads to 1 when opening video via lavf since the ffms2 bug that makes multithreaded decoding sometimes break still hasn't been fixed
Originally committed to SVN as r6761.
This commit is contained in:
parent
c354dc9e30
commit
baacea6ab0
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
|||
|
||||
// set thread count
|
||||
int Threads = OPT_GET("Provider/Video/FFmpegSource/Decoding Threads")->GetInt();
|
||||
if (FFMS_GetSourceType(Index) == FFMS_SOURCE_LAVF)
|
||||
Threads = 1;
|
||||
|
||||
// set seekmode
|
||||
// TODO: give this its own option?
|
||||
|
|
Loading…
Reference in a new issue