From: Thibaut Girka Date: Wed, 25 Nov 2020 14:47:23 +0000 (+0100) Subject: Default to 25 fps for frame seeking if framerate information isn't known X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=4dab236690034aaee497336bf52d51ba06f71b18;p=mastodon.git Default to 25 fps for frame seeking if framerate information isn't known --- diff --git a/app/javascript/flavours/glitch/features/video/index.js b/app/javascript/flavours/glitch/features/video/index.js index 7e8996af4..92dcaf473 100644 --- a/app/javascript/flavours/glitch/features/video/index.js +++ b/app/javascript/flavours/glitch/features/video/index.js @@ -544,7 +544,7 @@ class Video extends React.PureComponent { return this.props.frameRate.split('/').reduce((p, c) => p / c); } - return this.props.frameRate; + return this.props.frameRate || 25; } render () {