Skip to content

FLAC playback stops when seeking to silence in a long audio file

Description

When seeking to a silence section in a long song encoded in FLAC, playback stops until a different song is selected. This happens both when the file is in internal storage or an SD card.

Expected behavior

Seeking to approximately 4:25-5:15 in "You're Lying / We Got the Crown (Remix)" by Aventura moves playback to that portion of the song and continues playing.

Actual behavior

Playback freezes (i.e. the Play/Pause button fails to function, the audio does not get decoded, the time counter does not increment) until a different song is selected.

Judging by this issue as a whole, I'm suspecting some kind of buffer overflow (dangerous!) or some resampling edge case bug. If it is a buffer overflow or some other kind of memory leak, then it could be possible to compromise VLC with a bachata remix.

Steps to reproduce

  1. Load the song "You're Lying / We Got the Crown (Remix)" onto either internal storage or an SD card.
  2. Play this song either by browsing to it in Files, Audio, or Playlists.
  3. Seek to the portion of intentional silence (about from 4:25 to 5:00) and see playback completely halt.
  4. Note that this only happens for this one Aventura song. Some other files I play with VLC such as classical violin solos are even longer, but do not exhibit this bug.

Screenshot / video

The video I got is almost 50MB, too big to upload here, so I have it hosted on my NextCloud. https://streetlights.info/nc/s/4eCtw4mDGzbijmZ

I've also included the misbehaving audio file because it may have some unique property that causes this issue.

Context

App version

3.5.3

Android version

11

Device model

Moto G Power (2020)

App mode

Smartphone

Edited by Jackson Huff