diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-22 00:18:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-08-12 17:16:07 +0200 |
| commit | 9b73c143ce568bd8694e3a50f2fefc1ee3a03515 (patch) | |
| tree | b6774c68129ccc687c34a8271fa5e1361b93d3d0 /src/tools | |
| parent | 0114987c5d6040d8fe07a719d7f97b0a5e200458 (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/tools')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 2bf560811..344b47711 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -827,10 +827,10 @@ private: player->Video.connect ([path, &done, this](shared_ptr<PlayerVideo> video, DCPTime) { auto ext = boost::algorithm::to_lower_copy(path.extension().string()); if (ext == ".png") { - auto image = video->image(AV_PIX_FMT_RGBA, VideoRange::FULL, false); + auto image = video->image(force(AV_PIX_FMT_RGBA), VideoRange::FULL, false); image_as_png(image).write(path); } else if (ext == ".jpg" || ext == ".jpeg") { - auto image = video->image(AV_PIX_FMT_RGB24, VideoRange::FULL, false); + auto image = video->image(force(AV_PIX_FMT_RGB24), VideoRange::FULL, false); image_as_jpeg(image, 80).write(path); } else { error_dialog(this, wxString::Format(_("Unrecognised file extension %s (use .jpg, .jpeg or .png)"), std_to_wx(ext))); |
