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
860eb263
authored
Apr 21, 2017
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Misc cleanup for merged pull requests
parent
5381b4ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
build.gradle
extensions/ffmpeg/README.md
library/core/src/main/java/com/google/android/exoplayer2/extractor/flv/AudioTagPayloadReader.java
build.gradle
View file @
860eb263
...
@@ -52,8 +52,9 @@ allprojects {
...
@@ -52,8 +52,9 @@ allprojects {
releaseWebsite
=
'https://github.com/google/ExoPlayer'
releaseWebsite
=
'https://github.com/google/ExoPlayer'
}
}
if
(
it
.
hasProperty
(
'externalBuildDir'
))
{
if
(
it
.
hasProperty
(
'externalBuildDir'
))
{
if
(!
new
File
(
externalBuildDir
).
isAbsolute
())
if
(!
new
File
(
externalBuildDir
).
isAbsolute
())
{
externalBuildDir
=
new
File
(
rootDir
,
externalBuildDir
)
externalBuildDir
=
new
File
(
rootDir
,
externalBuildDir
)
}
buildDir
=
"${externalBuildDir}/${project.name}"
buildDir
=
"${externalBuildDir}/${project.name}"
}
}
}
}
...
...
extensions/ffmpeg/README.md
View file @
860eb263
...
@@ -37,7 +37,6 @@ NDK_PATH="<path to Android NDK>"
...
@@ -37,7 +37,6 @@ NDK_PATH="<path to Android NDK>"
HOST_PLATFORM="linux-x86_64"
HOST_PLATFORM="linux-x86_64"
```
```
*
Fetch and build FFmpeg. For example, to fetch and build for armeabi-v7a,
*
Fetch and build FFmpeg. For example, to fetch and build for armeabi-v7a,
arm64-v8a and x86 on Linux x86_64:
arm64-v8a and x86 on Linux x86_64:
...
...
library/core/src/main/java/com/google/android/exoplayer2/extractor/flv/AudioTagPayloadReader.java
View file @
860eb263
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
extractor
.
flv
;
package
com
.
google
.
android
.
exoplayer2
.
extractor
.
flv
;
import
android.util.Log
;
import
android.util.Pair
;
import
android.util.Pair
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
...
@@ -38,10 +37,7 @@ import java.util.Collections;
...
@@ -38,10 +37,7 @@ import java.util.Collections;
private
static
final
int
AAC_PACKET_TYPE_SEQUENCE_HEADER
=
0
;
private
static
final
int
AAC_PACKET_TYPE_SEQUENCE_HEADER
=
0
;
private
static
final
int
AAC_PACKET_TYPE_AAC_RAW
=
1
;
private
static
final
int
AAC_PACKET_TYPE_AAC_RAW
=
1
;
// SAMPLING RATES USED FOR MP3
private
static
final
int
[]
AUDIO_SAMPLING_RATE_TABLE
=
new
int
[]
{
5512
,
11025
,
22050
,
44100
};
private
static
final
int
[]
AUDIO_SAMPLING_RATE_TABLE
=
new
int
[]
{
5512
,
11025
,
22050
,
44100
};
// State variables
// State variables
private
boolean
hasParsedAudioDataHeader
;
private
boolean
hasParsedAudioDataHeader
;
...
@@ -100,9 +96,10 @@ import java.util.Collections;
...
@@ -100,9 +96,10 @@ import java.util.Collections;
// Parse the sequence header.
// Parse the sequence header.
byte
[]
audioSpecificConfig
=
new
byte
[
data
.
bytesLeft
()];
byte
[]
audioSpecificConfig
=
new
byte
[
data
.
bytesLeft
()];
data
.
readBytes
(
audioSpecificConfig
,
0
,
audioSpecificConfig
.
length
);
data
.
readBytes
(
audioSpecificConfig
,
0
,
audioSpecificConfig
.
length
);
Pair
<
Integer
,
Integer
>
audioParams
=
CodecSpecificDataUtil
.
parseAacAudioSpecificConfig
(
audioSpecificConfig
);
Pair
<
Integer
,
Integer
>
audioParams
=
CodecSpecificDataUtil
.
parseAacAudioSpecificConfig
(
Format
format
=
audioSpecificConfig
);
Format
.
createAudioSampleFormat
(
null
,
MimeTypes
.
AUDIO_AAC
,
null
,
Format
.
NO_VALUE
,
Format
.
NO_VALUE
,
audioParams
.
second
,
audioParams
.
first
,
Format
format
=
Format
.
createAudioSampleFormat
(
null
,
MimeTypes
.
AUDIO_AAC
,
null
,
Format
.
NO_VALUE
,
Format
.
NO_VALUE
,
audioParams
.
second
,
audioParams
.
first
,
Collections
.
singletonList
(
audioSpecificConfig
),
null
,
0
,
null
);
Collections
.
singletonList
(
audioSpecificConfig
),
null
,
0
,
null
);
output
.
format
(
format
);
output
.
format
(
format
);
hasOutputFormat
=
true
;
hasOutputFormat
=
true
;
...
...
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