Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
83c43ec9
authored
2015-05-15 15:47:11 -0400
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Whitespace fix
Variable definitions should be one-per-line.
1 parent
00b5acf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/flv-tag.js
src/flv-tag.js
View file @
83c43ec
...
...
@@ -377,7 +377,10 @@ hls.FlvTag.durationFromTags = function(tags) {
return
0
;
}
var
first
=
tags
[
0
],
last
=
tags
[
tags
.
length
-
1
],
frameDuration
;
var
first
=
tags
[
0
],
last
=
tags
[
tags
.
length
-
1
],
frameDuration
;
// use the interval between the last two tags or assume 24 fps
frameDuration
=
last
.
pts
-
tags
[
tags
.
length
-
2
].
pts
||
(
1
/
24
);
...
...
Please
register
or
sign in
to post a comment