Skip to content

FlacExtractor can detect spurious/garbage FLAC frame headers within encoded FLAC data #558

@Tolriq

Description

@Tolriq

Version

Media3 1.1.0

More version details

No response

Devices that reproduce the issue

All

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

Play the media with ffmpeg extension enabled for flac.

Expected result

Either the media have 2 small glitches like when playing with VLC, or the media stops at the invalid data like with the Pixel MediaCodec decoder, or the media stays in buffering state.

Current behavior can't be properly detected by code and the user only see constant flash between buffering and playing and do not understand if there's an issue on the media or the player or network issues.

Actual result

The media get stuck and ExoPlayer keeps switching between playing and buffering.

2023-08-02 15:21:17.807 T:ExoPlayer 
state [eventTime=162.93, mediaPos=121.83, window=0, period=0, BUFFERING]
2023-08-02 15:21:17.807 T:ExoPlayer 
isPlaying [eventTime=162.93, mediaPos=121.83, window=0, period=0, false]
2023-08-02 15:21:17.810 T:ExoPlayer 
state [eventTime=162.94, mediaPos=121.83, window=0, period=0, READY]
2023-08-02 15:21:17.811 T:ExoPlayer 
isPlaying [eventTime=162.94, mediaPos=121.83, window=0, period=0, true]
2023-08-02 15:21:17.968 T:ExoPlayer 
state [eventTime=163.10, mediaPos=121.83, window=0, period=0, BUFFERING]
2023-08-02 15:21:17.975 T:ExoPlayer 
isPlaying [eventTime=163.10, mediaPos=121.83, window=0, period=0, false]
2023-08-02 15:21:17.980 T:ExoPlayer 
state [eventTime=163.10, mediaPos=121.83, window=0, period=0, READY]
2023-08-02 15:21:17.981 T:ExoPlayer 
isPlaying [eventTime=163.10, mediaPos=121.83, window=0, period=0, true]

Above logs is repeated indefinitively.

Media

Sent by mail.

Bug Report

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions