Update openpype/plugins/publish/extract_thumbnail.py

This commit is contained in:
Toke Jepsen 2024-01-29 10:13:40 +00:00 committed by GitHub
parent 3f8830e27d
commit 3807172fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -448,7 +448,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
# Use duration of the individual streams since it is returned with
# higher decimal precision than 'format.duration'. We need this
# more precise value for calculating the correct amount of frames
# for higher FPS ranges or decimal ranges, e.g. 29.97 FPS
# for higher FPS ranges or decimal ranges, e.g. 29.97 FPS
duration = max(
float(stream.get("duration", 0))
for stream in video_data["streams"]