Don't force ffms2 threads to 1 if it's recent enough

Originally committed to SVN as r6909.
This commit is contained in:
Thomas Goyne 2012-06-16 04:10:32 +00:00
parent 77821c10b7
commit 9f7bdd8d17
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ 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)
if (FFMS_GetVersion() < ((2 << 24) | (17 << 16) | (2 << 8) | 1) && FFMS_GetSourceType(Index) == FFMS_SOURCE_LAVF)
Threads = 1;
// set seekmode