projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forward-port 86a5cdbe6ddb3506515cf8585a0902937147862e from master; crash when repeati...
[dcpomatic.git]
/
src
/
tools
/
dcpomatic_create.cc
diff --git
a/src/tools/dcpomatic_create.cc
b/src/tools/dcpomatic_create.cc
index c30f4e51e7fc66c7963f3aaa2f65b3c7b9c1296d..304f4f697ab6e8a031c44dd2a74c3b896f2c448a 100644
(file)
--- a/
src/tools/dcpomatic_create.cc
+++ b/
src/tools/dcpomatic_create.cc
@@
-81,7
+81,7
@@
main (int argc, char* argv[])
boost::filesystem::path output;
int option_index = 0;
boost::filesystem::path output;
int option_index = 0;
- while (
1
) {
+ while (
true
) {
static struct option long_options[] = {
{ "version", no_argument, 0, 'v'},
{ "help", no_argument, 0, 'h'},
static struct option long_options[] = {
{ "version", no_argument, 0, 'v'},
{ "help", no_argument, 0, 'h'},
@@
-190,7
+190,7
@@
main (int argc, char* argv[])
for (ContentList::iterator i = content.begin(); i != content.end(); ++i) {
shared_ptr<ImageContent> ic = dynamic_pointer_cast<ImageContent> (*i);
if (ic) {
for (ContentList::iterator i = content.begin(); i != content.end(); ++i) {
shared_ptr<ImageContent> ic = dynamic_pointer_cast<ImageContent> (*i);
if (ic) {
- ic->set_video_length (
still_length * 24
);
+ ic->set_video_length (
ContentTime::from_seconds (still_length)
);
}
}
}
}