xiph / xiph/flac

.WAV files are deleted after decoding attempt

Open
#763 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2.4k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

Hello.
In case you accidentally try to decode .WAV instead of .FLAC there is an error shown:

ERROR while decoding metadata
state = FLAC__STREAM_DECODER_END_OF_STREAM
Press any key to continue . . .

and .WAV file disappears.

build is taken here https://github.com/xiph/flac/actions/runs/11893043149

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with the build linked in the issue, using a .WAV file where a .FLAC file is expected. Trace the decode attempt and file-removal path; done means the decoding error still appears without deleting the .WAV file.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.