Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
02d42753
authored
Oct 26, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
A couple of final tweaks
parent
cdad156b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
library/src/main/java/com/google/android/exoplayer/extractor/flv/ScriptTagPayloadReader.java
library/src/main/java/com/google/android/exoplayer/extractor/flv/ScriptTagPayloadReader.java
View file @
02d42753
...
...
@@ -77,7 +77,7 @@ import java.util.Map;
// Should never happen.
return
;
}
// Set the duration to the
metadata's value
, if present.
// Set the duration to the
value contained in the metadata
, if present.
Map
<
String
,
Object
>
metadata
=
(
Map
<
String
,
Object
>)
readAmfData
(
data
,
type
);
if
(
metadata
.
containsKey
(
KEY_DURATION
))
{
double
durationSeconds
=
(
double
)
metadata
.
get
(
KEY_DURATION
);
...
...
@@ -202,8 +202,8 @@ import java.util.Map;
* @return The value read from the buffer.
*/
private
Date
readAmfDate
(
ParsableByteArray
data
)
{
final
Date
date
=
new
Date
((
long
)
readAmfDouble
(
data
).
doubleValue
());
data
.
readUnsignedShort
();
Date
date
=
new
Date
((
long
)
readAmfDouble
(
data
).
doubleValue
());
data
.
readUnsignedShort
();
// Skip reserved bytes.
return
date
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment