mirror of
https://github.com/TeamPiped/Piped
synced 2025-11-07 16:00:08 +01:00
This PR fixes two issue observed with the seekbar preview: - sometimes images got cropped incorrectly at the end of the video due to image having less frames that server tells us - so calculate it in place; - set canvas width and height based on actual frame data so it follows the video aspect ratio rather than hard-coded value.