Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Remove duplicated version check
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqr committed Oct 28, 2019
1 parent 41a1690 commit ba9da43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_provider_ffmpegsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ void FFmpegSourceVideoProvider::LoadVideo(agi::fs::path const& filename, std::st

// set thread count
int Threads = OPT_GET("Provider/Video/FFmpegSource/Decoding Threads")->GetInt();
#if FFMS_VERSION < ((2 << 24) | (30 << 16) | (0 << 8) | 0)
if (FFMS_GetVersion() < ((2 << 24) | (17 << 16) | (2 << 8) | 1) && FFMS_GetSourceType(Index) == FFMS_SOURCE_LAVF)
#if FFMS_VERSION < ((2 << 24) | (17 << 16) | (2 << 8) | 1)
if (FFMS_GetSourceType(Index) == FFMS_SOURCE_LAVF)
Threads = 1;
#endif

Expand Down

0 comments on commit ba9da43

Please sign in to comment.