File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ module.exports = (_options = {}) => {
58
58
readFrames = true ;
59
59
}
60
60
} else if ( readFrames && message . startsWith ( ' Stream' ) ) {
61
- const match = message . match ( / ( [ \d \ .] + ) f p s / ) ;
61
+ const match = message . match ( / ( [ \d . ] + ) f p s / ) ;
62
62
if ( match ) {
63
63
const fps = parseFloat ( match [ 1 ] ) ;
64
64
frames = duration * fps ;
65
65
} else {
66
66
frames = 0 ;
67
- } ;
67
+ }
68
68
readFrames = false ;
69
69
} else if ( message . startsWith ( 'frame' ) || message . startsWith ( 'size' ) ) {
70
70
const ts = message . split ( 'time=' ) [ 1 ] . split ( ' ' ) [ 0 ] ;
@@ -74,7 +74,7 @@ module.exports = (_options = {}) => {
74
74
ratio = Math . min ( f / frames , 1 ) ;
75
75
} else {
76
76
ratio = t / duration ;
77
- } ;
77
+ }
78
78
prog ( { ratio, time : t } ) ;
79
79
} else if ( message . startsWith ( 'video:' ) ) {
80
80
prog ( { ratio : 1 } ) ;
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ module.exports = (message, progress) => {
19
19
readFrames = true ;
20
20
}
21
21
} else if ( readFrames && message . startsWith ( ' Stream' ) ) {
22
- const match = message . match ( / ( [ \d \ .] + ) f p s / ) ;
22
+ const match = message . match ( / ( [ \d . ] + ) f p s / ) ;
23
23
if ( match ) {
24
24
const fps = parseFloat ( match [ 1 ] ) ;
25
25
frames = duration * fps ;
26
26
} else {
27
27
frames = 0 ;
28
- } ;
28
+ }
29
29
readFrames = false ;
30
30
} else if ( message . startsWith ( 'frame' ) || message . startsWith ( 'size' ) ) {
31
31
const ts = message . split ( 'time=' ) [ 1 ] . split ( ' ' ) [ 0 ] ;
@@ -35,7 +35,7 @@ module.exports = (message, progress) => {
35
35
ratio = Math . min ( f / frames , 1 ) ;
36
36
} else {
37
37
ratio = t / duration ;
38
- } ;
38
+ }
39
39
progress ( { ratio, time : t } ) ;
40
40
} else if ( message . startsWith ( 'video:' ) ) {
41
41
progress ( { ratio : 1 } ) ;
You can’t perform that action at this time.
0 commit comments