From: Good Guy Date: Tue, 29 Jan 2019 21:26:32 +0000 (-0700) Subject: add shuttle udev rules to doc, fix still images drag handle X-Git-Tag: 2019-08~116 X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=2ee3e6601dfc9c7679be32304f6a746b3aa82136;p=goodguy%2Fcinelerra.git add shuttle udev rules to doc, fix still images drag handle --- diff --git a/cinelerra-5.1/cinelerra/vedit.C b/cinelerra-5.1/cinelerra/vedit.C index c40f72d8..eaa28c1a 100644 --- a/cinelerra-5.1/cinelerra/vedit.C +++ b/cinelerra-5.1/cinelerra/vedit.C @@ -145,13 +145,12 @@ int64_t VEdit::get_source_end(int64_t default_) { if(!nested_edl && !asset) return default_; // Infinity - if(nested_edl) - { + if( nested_edl ) { return (int64_t)(nested_edl->tracks->total_length() * edl->session->frame_rate + 0.5); } - return (int64_t)((double)asset->video_length / - asset->frame_rate * - edl->session->frame_rate + 0.5); + return asset->video_length < 0 ? default_ : + (int64_t)((double)asset->video_length / + asset->frame_rate * edl->session->frame_rate + 0.5); }