media/library
ibaker bd312ec906 Preserve limit when resetting ParsableByteArray in OggPacket#populate
When I moved ParsableByteArray#data behind a getter I replaced some
assignments with calls to reset(byte[]):
ce2e6e2fd6

reset(byte[]) deliberately sets `limit` to `data.length`, in order to
handle cases that were reassigning `data` but not updating `limit`.
However OggPacket was already using `limit` to track where to write
'new' data into the array, so changing `limit` to `data.length` caused
us to try and write new data beyond the end of the array.

I looked at other uses of reset(byte[]) in ce2e6e2fd6
and condluded the only other usage in MatroskaExtractor is legit and
shouldn't be updated like this (because MatroskaExtractor previously
*wasn't* correctly updating/maintaining `limit`).

Issue: #7992
PiperOrigin-RevId: 334601586
2020-10-17 11:53:40 +01:00
..
all Move common gradle setup to a setting file. 2020-06-26 11:13:25 +01:00
common Util.getStringForTime() prefixes negative times 2020-10-17 11:48:24 +01:00
core Fix position ramping behavior with AudioTrack speed params 2020-10-17 11:53:06 +01:00
dash Merge pull request #7968 from DolbyLaboratories:dev-v2-channelConfiguration 2020-10-17 11:48:14 +01:00
extractor Preserve limit when resetting ParsableByteArray in OggPacket#populate 2020-10-17 11:53:40 +01:00
hls Exclude Guava transitive annotation dependencies 2020-09-11 16:02:37 +01:00
smoothstreaming Simplify DefaultMediaSourceFactory ad configuration 2020-09-07 20:46:57 +01:00
ui Do not require subtitleButton in custom layouts of StyledPlayerView 2020-10-17 11:52:45 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.