summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-24 19:44:57 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-24 19:44:57 +0100
commit411fc6cec1b2ebc10aa8e28436cf84ad316f5f0c (patch)
treee0a80275a1bb369c32c1af591452b7fddf116220 /src
parent8cc0f7c4258e5dd49bfd8751442171b5adcbb51b (diff)
Still encoder should write frames starting at 0, not 1
Diffstat (limited to 'src')
-rw-r--r--src/lib/j2k_still_encoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/j2k_still_encoder.cc b/src/lib/j2k_still_encoder.cc
index e7b0c40da..a42d0d476 100644
--- a/src/lib/j2k_still_encoder.cc
+++ b/src/lib/j2k_still_encoder.cc
@@ -57,13 +57,13 @@ J2KStillEncoder::process_video (shared_ptr<Image> yuv, int frame)
_log
);
- if (!boost::filesystem::exists (_opt->frame_out_path (1, false))) {
+ if (!boost::filesystem::exists (_opt->frame_out_path (0, false))) {
boost::shared_ptr<EncodedData> e = f->encode_locally ();
- e->write (_opt, 1);
+ e->write (_opt, 0);
}
string const real = _opt->frame_out_path (1, false);
- for (int i = 2; i <= (_fs->still_duration * ImageMagickDecoder::static_frames_per_second()); ++i) {
+ for (int i = 1; i < (_fs->still_duration * ImageMagickDecoder::static_frames_per_second()); ++i) {
if (!boost::filesystem::exists (_opt->frame_out_path (i, false))) {
string const link = _opt->frame_out_path (i, false);
#ifdef DVDOMATIC_POSIX