summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-16 20:29:55 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-16 20:29:55 +0200
commit0f42191dba5596c853ad37714c623fa6bc294d95 (patch)
treef36d52245ef87fb0b1928143eede8a0e3a9b6bf8
parentf1a7f3bcafa9f76d080e53d644058904846b877d (diff)
Compress an if.
-rw-r--r--src/lib/dcp_subtitle_content.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/dcp_subtitle_content.cc b/src/lib/dcp_subtitle_content.cc
index cc4cda252..f1ddc0a5d 100644
--- a/src/lib/dcp_subtitle_content.cc
+++ b/src/lib/dcp_subtitle_content.cc
@@ -64,8 +64,7 @@ DCPSubtitleContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bo
auto subtitle_asset = load(path(0));
- auto smpte = dynamic_pointer_cast<dcp::SMPTETextAsset>(subtitle_asset);
- if (smpte) {
+ if (auto smpte = dynamic_pointer_cast<dcp::SMPTETextAsset>(subtitle_asset)) {
set_video_frame_rate(film, smpte->edit_rate().numerator);
}