forked from 0x2620/pandora
dont fail for clips < 1 frame
This commit is contained in:
parent
7f08cc4bf3
commit
6fd5adbb1d
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class MetaClip:
|
||||||
start = min(self.start, self.item.sort.duration)
|
start = min(self.start, self.item.sort.duration)
|
||||||
end = min(self.end, self.item.sort.duration)
|
end = min(self.end, self.item.sort.duration)
|
||||||
self.duration = end - start
|
self.duration = end - start
|
||||||
if self.duration > 0:
|
if int(end*25) - int(start*25):
|
||||||
self.hue, self.saturation, self.lightness = extract.average_color(
|
self.hue, self.saturation, self.lightness = extract.average_color(
|
||||||
self.item.timeline_prefix, self.start, self.end)
|
self.item.timeline_prefix, self.start, self.end)
|
||||||
self.volume = extract.average_volume(self.item.timeline_prefix, self.start, self.end)
|
self.volume = extract.average_volume(self.item.timeline_prefix, self.start, self.end)
|
||||||
|
|
Loading…
Reference in a new issue