Skip to content

Commit

Permalink
avisynth: Remove file access checks
Browse files Browse the repository at this point in the history
These are broken in some edge cases, such as smb mounts on Windows.
Paired with d96fc1f.
  • Loading branch information
arch1t3cht committed Feb 8, 2023
1 parent f5a730f commit 6704a8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/audio_provider_avs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ void AvisynthAudioProvider::FillBuffer(void *buf, int64_t start, int64_t count)
}

std::unique_ptr<agi::AudioProvider> CreateAvisynthAudioProvider(agi::fs::path const& file, agi::BackgroundRunner *) {
agi::acs::CheckFileRead(file);
return agi::make_unique<AvisynthAudioProvider>(file);
}
#endif
1 change: 0 additions & 1 deletion src/video_provider_avs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ void AvisynthVideoProvider::GetFrame(int n, VideoFrame &out) {

namespace agi { class BackgroundRunner; }
std::unique_ptr<VideoProvider> CreateAvisynthVideoProvider(agi::fs::path const& path, std::string const& colormatrix, agi::BackgroundRunner *) {
agi::acs::CheckFileRead(path);
return agi::make_unique<AvisynthVideoProvider>(path, colormatrix);
}
#endif // HAVE_AVISYNTH

0 comments on commit 6704a8e

Please sign in to comment.