summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-22 00:18:32 +0200
committerCarl Hetherington <cth@carlh.net>2025-08-12 17:16:07 +0200
commit9b73c143ce568bd8694e3a50f2fefc1ee3a03515 (patch)
treeb6774c68129ccc687c34a8271fa5e1361b93d3d0 /src/lib/util.cc
parent0114987c5d6040d8fe07a719d7f97b0a5e200458 (diff)
Replace AVPixelFormat parameter to PlayerVideo::image with a functor.
This was removed in df9b4676aba8b941f124b174393988cad21677e1 and surrounding commits, but it turns out we need it after all.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc7
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; };
+}
+