projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Various fixes to still-image mode.
[dcpomatic.git]
/
src
/
lib
/
film.cc
diff --git
a/src/lib/film.cc
b/src/lib/film.cc
index b295bdc83e7c84c4f5fc555da540904aae38a722..2e2ec368abfafa74dd5e04989a9892a30a88b226 100644
(file)
--- a/
src/lib/film.cc
+++ b/
src/lib/film.cc
@@
-678,6
+678,10
@@
Film::target_audio_sample_rate () const
boost::optional<SourceFrame>
Film::dcp_length () const
{
+ if (content_type() == STILL) {
+ return _still_duration * frames_per_second();
+ }
+
if (!length()) {
return boost::optional<SourceFrame> ();
}