diff options
author | Robin Gareus <robin@gareus.org> | 2014-07-02 20:26:13 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-07-02 23:36:06 +0200 |
commit | 77e716943fb8ec086e4b5c158841b6dd49b423f4 (patch) | |
tree | 223423fefd49dc897bc74a0bf4dd9b66aa6f9dc2 /gtk2_ardour/export_video_dialog.cc | |
parent | 3c2c048f406703a4baae3f2b660dddaeee39faeb (diff) |
round A/V offset to video-frames.
Diffstat (limited to 'gtk2_ardour/export_video_dialog.cc')
-rw-r--r-- | gtk2_ardour/export_video_dialog.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/export_video_dialog.cc b/gtk2_ardour/export_video_dialog.cc index e5f1890737..6868b488cd 100644 --- a/gtk2_ardour/export_video_dialog.cc +++ b/gtk2_ardour/export_video_dialog.cc @@ -611,7 +611,8 @@ ExportVideoDialog::encode_pass (int pass) ffs.clear(); if (fps_checkbox.get_active()) { - ffs["-r"] = fps_combo.get_active_text(); + ffs["-r"] = fps_combo.get_active_text(); + transcoder->set_fps(atof(fps_combo.get_active_text())); } if (scale_checkbox.get_active()) { @@ -731,11 +732,7 @@ ExportVideoDialog::encode_pass (int pass) std::ostringstream osstream; osstream << duration_s; ffs["-t"] = osstream.str(); - if (fps_checkbox.get_active()) { - transcoder->set_duration(duration_s * atof(fps_combo.get_active_text())); - } else { - transcoder->set_duration(duration_s * transcoder->get_fps()); - } + transcoder->set_duration(duration_s * transcoder->get_fps()); if (insnd_combo.get_active_row_number() == 0 || insnd_combo.get_active_row_number() == 2) { framepos_t start, snend; |