Skip to content

Commit

Permalink
存在しないドライブに出力すると異常終了する問題を修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Mar 17, 2024
1 parent 782d458 commit 8f0dbeb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions QSVEnc/QSVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ API v1.1 … Intel Media SDK v2.0
- --avsyncのデフォルト値を実態に合わないcfrからautoに変更。
- 音声を品質で指定するオプションを追加。 ( --audio-quality )
- Linux環境で権限不足でデバイスをopenできなかった場合のメッセージを改善。
- 存在しないドライブに出力すると異常終了する問題を修正。

2024.02.20 (7.61)
- Resizable BARが無効の状態でArc GPUでエンコードした際に、GPUクロックが低下し
Expand Down
12 changes: 10 additions & 2 deletions QSVPipeline/rgy_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,23 @@ bool CreateDirectoryRecursive(const char *dir) {
if (std::filesystem::exists(targetDir)) {
return true;
}
return std::filesystem::create_directories(targetDir);
try {
return std::filesystem::create_directories(targetDir);
} catch (...) {
return false;
}
}
#if defined(_WIN32) || defined(_WIN64)
bool CreateDirectoryRecursive(const wchar_t *dir) {
auto targetDir = std::filesystem::path(wcslen(dir) ? dir : L".");
if (std::filesystem::exists(targetDir)) {
return true;
}
return std::filesystem::create_directories(targetDir);
try {
return std::filesystem::create_directories(targetDir);
} catch (...) {
return false;
}
}
#endif //#if defined(_WIN32) || defined(_WIN64)

Expand Down

0 comments on commit 8f0dbeb

Please sign in to comment.