You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge pull request #395 from SuslikV/patch-4
Skip painter transform for the Clip when video disabled
This commit is contained in:
@@ -372,8 +372,9 @@ void Timeline::add_layer(std::shared_ptr<Frame> new_frame, Clip* source_clip, in
|
||||
|
||||
}
|
||||
|
||||
// Skip out if only an audio frame
|
||||
if (!source_clip->Waveform() && !source_clip->Reader()->info.has_video)
|
||||
// Skip out if video was disabled or only an audio frame (no visualisation in use)
|
||||
if (source_clip->has_video.GetInt(clip_frame_number) == 0 ||
|
||||
(!source_clip->Waveform() && !source_clip->Reader()->info.has_video))
|
||||
// Skip the rest of the image processing for performance reasons
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user