Skip to content
Extraits de code Groupes Projets
Valider 6a98f9e3 rédigé par Niels Martin Hansen's avatar Niels Martin Hansen
Parcourir les fichiers

Hack: Force-disable multithreading in ffms2 video provider when loading AVI...

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.
parent b955ad1c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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?
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter