You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed codacy review warnings
This commit is contained in:
@@ -40,6 +40,8 @@ using google::protobuf::util::TimeUtil;
|
||||
CVTracker::CVTracker(std::string processInfoJson, ProcessingController &processingController)
|
||||
: processingController(&processingController), json_interval(false){
|
||||
SetJson(processInfoJson);
|
||||
start = 0;
|
||||
end = 0;
|
||||
}
|
||||
|
||||
// Set desirable tracker method
|
||||
@@ -71,7 +73,7 @@ void CVTracker::trackClip(openshot::Clip& video, size_t _start, size_t _end, boo
|
||||
if(!json_interval){
|
||||
start = _start; end = _end;
|
||||
|
||||
if(!process_interval || end <= 0 || end-start <= 0){
|
||||
if(!process_interval || end <= 0 || end-start == 0){
|
||||
// Get total number of frames in video
|
||||
start = video.Start() * video.Reader()->info.fps.ToInt();
|
||||
end = video.End() * video.Reader()->info.fps.ToInt();
|
||||
|
||||
Reference in New Issue
Block a user