media/library/extractor
ibaker ae0d9b1359 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-06 14:30:01 +01:00
..
src Preserve limit when resetting ParsableByteArray in OggPacket#populate 2020-10-06 14:30:01 +01:00
build.gradle Exclude Guava transitive annotation dependencies 2020-09-11 16:01:15 +01:00
proguard-rules.txt Align flags between the core and extension FLAC extractors 2020-06-23 11:05:37 +01:00
README.md Split out extractor and common modules 2020-01-24 18:15:19 +00:00

ExoPlayer extractor library module

Provides media container extractors.

  • Javadoc: Classes matching com.google.android.exoplayer2.extractor.* belong to this module.