Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parseEsdsFromParent throw exception with "Top bit not zero: -1" #10419

Closed
1 task
zgzong opened this issue Jul 7, 2022 · 1 comment
Closed
1 task

parseEsdsFromParent throw exception with "Top bit not zero: -1" #10419

zgzong opened this issue Jul 7, 2022 · 1 comment
Assignees

Comments

@zgzong
Copy link

zgzong commented Jul 7, 2022

ExoPlayer Version

2.18.0

Devices that reproduce the issue

This is not device related issue. Any device can reproduce this issue.

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

This is dashif test vector stream, add it into exoplayer demo app media.exolist.json
{
"name": "DASH TestVector Testcase 1b Thomson2",
"uri" : "http://dash.edgesuite.net/dash264/TestCases/1b/thomson-networks/2/manifest_bug.mpd"
}

And the issue will occurred when try to play it.

Expected result

The stream can be played smoothly.

Actual result

The following exception thrown.

2022-07-07 16:09:46.688 17621-17720/com.google.android.exoplayer2.demo E/LoadTask: Unexpected exception loading stream
java.lang.IllegalStateException: Top bit not zero: -1
at com.google.android.exoplayer2.util.ParsableByteArray.readUnsignedIntToInt(ParsableByteArray.java:371)
at com.google.android.exoplayer2.extractor.mp4.AtomParsers.parseEsdsFromParent(AtomParsers.java:1686)
at com.google.android.exoplayer2.extractor.mp4.AtomParsers.parseAudioSampleEntry(AtomParsers.java:1516)
at com.google.android.exoplayer2.extractor.mp4.AtomParsers.parseStsd(AtomParsers.java:987)
at com.google.android.exoplayer2.extractor.mp4.AtomParsers.parseTrak(AtomParsers.java:311)
at com.google.android.exoplayer2.extractor.mp4.AtomParsers.parseTraks(AtomParsers.java:132)
at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.onMoovContainerAtomRead(FragmentedMp4Extractor.java:516)
at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.onContainerAtomRead(FragmentedMp4Extractor.java:486)
at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.processAtomEnded(FragmentedMp4Extractor.java:466)
at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.readAtomPayload(FragmentedMp4Extractor.java:461)
at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.read(FragmentedMp4Extractor.java:338)
at com.google.android.exoplayer2.source.chunk.BundledChunkExtractor.read(BundledChunkExtractor.java:147)
at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(InitializationChunk.java:102)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)

This stream can be played smoothly with exoplayer 2.16.1.

Media

http://dash.edgesuite.net/dash264/TestCases/1b/thomson-networks/2/manifest_bug.mpd

Bug Report

@icbaker
Copy link
Collaborator

icbaker commented Jul 7, 2022

Duplicate of #10381

@icbaker icbaker marked this as a duplicate of #10381 Jul 7, 2022
@icbaker icbaker closed this as completed Jul 7, 2022
@google google locked and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants