-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Failed to play problem TS chunk and getting Unexpected IllegalStateException: null #8005
Comments
@kim-vde the issue seems to be an assertion in the H264Reader extractor, could you take a look? Thanks. |
One of the packets in the TS file has its length field equal to 1, which is not possible as it would mean that the total packet size is smaller than the packet header size. More precisely, the Analysing the file with I will implement a fix in ExoPlayer to ignore the payload size if it is negative. |
Issue: #8005 PiperOrigin-RevId: 335625992
Issue: #8005 PiperOrigin-RevId: 335625992
Issue description
While playing a problem TS chunk player gets error and stop playing.
With this chunk it always happens near mediaPos=7.30.
It doesn't matter if the chunk is part of the HLS stream or is played separately.
FFPlay and VLC can play through this chunk (with short-term picture breaking).
Reproduction steps
This bug can be reproduced in the demo app with this media.exolist.json:
Link to test content
Link to problem chunk: https://hivemind.rip/138.ts
A full bug report captured from the device
https://hivemind.rip/report.zip
Version of ExoPlayer being used
2.12.0 from release-v2 branch
Device(s) and version(s) of Android being used
Bug can be reproduced stably on all devices available to me (Xiaomi Mi BOX,
Amazon Fire TV Stick 4k) and in the Android emulator (used Android TV (1080p) with 28 API level).
The text was updated successfully, but these errors were encountered: