]> cat aescling's git repositories - mastodon.git/commitdiff
Default to 25 fps for frame seeking if framerate information isn't known
authorThibaut Girka <thib@sitedethib.com>
Wed, 25 Nov 2020 14:47:23 +0000 (15:47 +0100)
committerThibaut Girka <thib@sitedethib.com>
Wed, 25 Nov 2020 14:47:23 +0000 (15:47 +0100)
app/javascript/flavours/glitch/features/video/index.js

index 7e8996af4fabdad9bf95fc7904c10327cb7117c0..92dcaf473c8b7a0dd1596f3c0d2d4d02816dfed4 100644 (file)
@@ -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 () {