-
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
ArrayIndexOutOfBoundsException occurs in HlsChunkSource #5816
Comments
I investigated some codes. In HlsChunkSource " I have a few questions about that code.
|
I think an index out of bounds may be thrown for live content in some scenarios. A fix should be available in the dev-branch relatively soon. However, I'm not sure the fix will make it to 2.10. |
Can happen if the load position falls behind in every playlist and when we try to load the next segment, the adaptive selection logic decides to change variant. Issue:#5816 PiperOrigin-RevId: 245923006
The fix will be included in |
Can happen if the load position falls behind in every playlist and when we try to load the next segment, the adaptive selection logic decides to change variant. Issue:#5816 PiperOrigin-RevId: 245923006
Hi I'm using exoplayer version 2.9.0
In HlsChunkSource,
There is a code
HlsMediaPlaylist.Segment segment = mediaPlaylist.segments.get(chunkIndex);
however, if chunk index is negative, that chunkIndex cause ArrayIndexOutOfBoundsException.
int chunkIndex = (int) (chunkMediaSequence - mediaPlaylist.mediaSequence);
upper code, that chunkMediaSequence can be negative. if previous chunk's next chunk index is negative, that chunkMediaSequence is negative
I have a question, In what situations is previous chunk index to be negative?
my log
The text was updated successfully, but these errors were encountered: