diff options
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 12ea8c0eb..fb9c1bb2d 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -1171,3 +1171,10 @@ paths_exist(vector<boost::filesystem::path> const& paths) return std::all_of(paths.begin(), paths.end(), [](boost::filesystem::path const& path) { return dcp::filesystem::exists(path); }); } + +std::function<AVPixelFormat (AVPixelFormat)> +force(AVPixelFormat format) +{ + return [format](AVPixelFormat) { return format; }; +} + |
