- libdcp::DCP dcp (_fs->dir (_fs->name), _fs->name, _fs->dcp_content_type->libdcp_type (), rint (_fs->frames_per_second), _fs->length);
- dcp.Progress.connect (sigc::mem_fun (*this, &MakeDCPJob::dcp_progress));
-
- list<string> j2cs;
- int f = _fs->dcp_frames ? _fs->dcp_frames : _fs->length;
- for (int i = 0; i < f; ++i) {
- j2cs.push_back (_opt->frame_out_path (i, false));
+ int frames = 0;
+ switch (_fs->content_type ()) {
+ case VIDEO:
+ frames = _fs->dcp_frames ? _fs->dcp_frames : _fs->length;
+ break;
+ case STILL:
+ frames = _fs->still_duration * ImageMagickDecoder::static_frames_per_second ();
+ break;