Misc cleanup for merged pull requests
This commit is contained in:
parent
5381b4ec56
commit
860eb26301
@ -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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
|
|
||||||
|
@ -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;
|
|||||||
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,10 +96,11 @@ 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,
|
||||||
Collections.singletonList(audioSpecificConfig), null, 0, null);
|
Format.NO_VALUE, Format.NO_VALUE, audioParams.second, audioParams.first,
|
||||||
|
Collections.singletonList(audioSpecificConfig), null, 0, null);
|
||||||
output.format(format);
|
output.format(format);
|
||||||
hasOutputFormat = true;
|
hasOutputFormat = true;
|
||||||
} else if (audioFormat != AUDIO_FORMAT_AAC || packetType == AAC_PACKET_TYPE_AAC_RAW) {
|
} else if (audioFormat != AUDIO_FORMAT_AAC || packetType == AAC_PACKET_TYPE_AAC_RAW) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user