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 = {}) => {
5858 readFrames = true ;
5959 }
6060 } else if ( readFrames && message . startsWith ( ' Stream' ) ) {
61- const match = message . match ( / ( [ \d \ .] + ) f p s / ) ;
61+ const match = message . match ( / ( [ \d . ] + ) f p s / ) ;
6262 if ( match ) {
6363 const fps = parseFloat ( match [ 1 ] ) ;
6464 frames = duration * fps ;
6565 } else {
6666 frames = 0 ;
67- } ;
67+ }
6868 readFrames = false ;
6969 } else if ( message . startsWith ( 'frame' ) || message . startsWith ( 'size' ) ) {
7070 const ts = message . split ( 'time=' ) [ 1 ] . split ( ' ' ) [ 0 ] ;
@@ -74,7 +74,7 @@ module.exports = (_options = {}) => {
7474 ratio = Math . min ( f / frames , 1 ) ;
7575 } else {
7676 ratio = t / duration ;
77- } ;
77+ }
7878 prog ( { ratio, time : t } ) ;
7979 } else if ( message . startsWith ( 'video:' ) ) {
8080 prog ( { ratio : 1 } ) ;
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ module.exports = (message, progress) => {
1919 readFrames = true ;
2020 }
2121 } else if ( readFrames && message . startsWith ( ' Stream' ) ) {
22- const match = message . match ( / ( [ \d \ .] + ) f p s / ) ;
22+ const match = message . match ( / ( [ \d . ] + ) f p s / ) ;
2323 if ( match ) {
2424 const fps = parseFloat ( match [ 1 ] ) ;
2525 frames = duration * fps ;
2626 } else {
2727 frames = 0 ;
28- } ;
28+ }
2929 readFrames = false ;
3030 } else if ( message . startsWith ( 'frame' ) || message . startsWith ( 'size' ) ) {
3131 const ts = message . split ( 'time=' ) [ 1 ] . split ( ' ' ) [ 0 ] ;
@@ -35,7 +35,7 @@ module.exports = (message, progress) => {
3535 ratio = Math . min ( f / frames , 1 ) ;
3636 } else {
3737 ratio = t / duration ;
38- } ;
38+ }
3939 progress ( { ratio, time : t } ) ;
4040 } else if ( message . startsWith ( 'video:' ) ) {
4141 progress ( { ratio : 1 } ) ;
You can’t perform that action at this time.
0 commit comments