mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Allow MP3 files to play with size greater than 2GB.
Issue:#7337 PiperOrigin-RevId: 312042768
This commit is contained in:
parent
8188c29279
commit
cda9417aa6
@ -158,11 +158,14 @@
|
|||||||
marked with the `C.ROLE_FLAG_TRICK_PLAY` flag.
|
marked with the `C.ROLE_FLAG_TRICK_PLAY` flag.
|
||||||
* Fix assertion failure in `SampleQueue` when playing DASH streams with
|
* Fix assertion failure in `SampleQueue` when playing DASH streams with
|
||||||
EMSG tracks ([#7273](https://github.com/google/ExoPlayer/issues/7273)).
|
EMSG tracks ([#7273](https://github.com/google/ExoPlayer/issues/7273)).
|
||||||
* MP3: Add `IndexSeeker` for accurate seeks in VBR streams
|
* MP3:
|
||||||
([#6787](https://github.com/google/ExoPlayer/issues/6787)). This seeker is
|
* Add `IndexSeeker` for accurate seeks in VBR streams
|
||||||
enabled by passing `FLAG_ENABLE_INDEX_SEEKING` to the `Mp3Extractor`. It may
|
([#6787](https://github.com/google/ExoPlayer/issues/6787)). This seeker
|
||||||
require to scan a significant portion of the file for seeking, which may be
|
is enabled by passing `FLAG_ENABLE_INDEX_SEEKING` to the `Mp3Extractor`.
|
||||||
costly on large files.
|
It may require to scan a significant portion of the file for seeking,
|
||||||
|
which may be costly on large files.
|
||||||
|
* Allow MP3 files with XING headers that are larger than 2GB to be played
|
||||||
|
([#7337](https://github.com/google/ExoPlayer/issues/7337)).
|
||||||
* MP4: Store the Android capture frame rate only in `Format.metadata`.
|
* MP4: Store the Android capture frame rate only in `Format.metadata`.
|
||||||
`Format.frameRate` now stores the calculated frame rate.
|
`Format.frameRate` now stores the calculated frame rate.
|
||||||
* MPEG-TS: Fix issue where SEI NAL units were incorrectly dropped from H.265
|
* MPEG-TS: Fix issue where SEI NAL units were incorrectly dropped from H.265
|
||||||
|
@ -64,7 +64,7 @@ import com.google.android.exoplayer2.util.Util;
|
|||||||
return new XingSeeker(position, mpegAudioHeader.frameSize, durationUs);
|
return new XingSeeker(position, mpegAudioHeader.frameSize, durationUs);
|
||||||
}
|
}
|
||||||
|
|
||||||
long dataSize = frame.readUnsignedIntToInt();
|
long dataSize = frame.readUnsignedInt();
|
||||||
long[] tableOfContents = new long[100];
|
long[] tableOfContents = new long[100];
|
||||||
for (int i = 0; i < 100; i++) {
|
for (int i = 0; i < 100; i++) {
|
||||||
tableOfContents[i] = frame.readUnsignedByte();
|
tableOfContents[i] = frame.readUnsignedByte();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user