mirror of https://github.com/odrling/Aegisub
Hack: Force-disable multithreading in ffms2 video provider when loading AVI files, since there is some long-standing bug related to multithreaded decoding from those.
Originally committed to SVN as r6148.
This commit is contained in:
parent
b955ad1c52
commit
6a98f9e37f
|
@ -199,6 +199,9 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
|||
|
||||
//number of threads automatically determined by ffms2 if given a value < 1
|
||||
int Threads = Options.AsInt(_T("FFmpegSource threads"));
|
||||
// hack: multithreading tends to fail on avi files, to force those to use a single thread
|
||||
if (filename.EndsWith(_T(".avi")))
|
||||
Threads = 1;
|
||||
|
||||
// set seekmode
|
||||
// TODO: give this its own option?
|
||||
|
|
Loading…
Reference in New Issue