Skip to content

EventMessageEncoder/Decoder doesn't work well with Long values #5490

@jankowskib

Description

@jankowskib

Issue description

I have EventMessages with a large presentation time value e.g. '<Event presentationTime="16122561404240"'. Unfortunately EventMessageEncoder stores this big values using writeUnsignedInt instead of writeUnsignedLong and the part of its value is discarded. So when EventMessageDecoder tries to decode message from inputBuffer the value is totally incorrect.

Reproduction steps

  1. Init ExoPlayer with https://gist.githubusercontent.com/jankowskib/92a5e955d2bf94b45721f4783ec22206/raw/738dc7443071cd8c5e5bf880ecb8ca2666bff02f/scte35.mpd
  2. Set breakpoint on onMetaData
  3. presentationTimeUs value is incorrect

Link to test content

Provide a link to media that reproduces the issue. If you don't wish to post it
publicly, please submit the issue, then email the link to
dev.exoplayer@gmail.com using a subject in the format "Issue #1234".

Version of ExoPlayer being used

2.9.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions