Re: --skip and --until with total sample count of 0
Stefan Oltmanns <[email protected]> Wed, 18 Jun 2025 10:16:47 +0200
| Newsgroups | gmane.comp.audio.compression.flac.devel |
|---|---|
| Message-ID | <[email protected]> |
Am 18.06.25 um 08:21 schrieb Martijn van Beurden: > Op di 17 jun 2025 00:11 schreef Stefan Oltmanns <[email protected]>: >> >> Hi, >> >> I noticed the flac decoder has checks to disable the use of --skip and >> --until if the total sample count is 0. >> Why that? > > I've had to fix quite a few cases of undefined behaviour that were > related to skip and until. The code is quite messy actually. I'd > rather get rid of it completely, also since FLAC isn't meant as an > edit tool (editing is not lossless and all) but I know some people > depend on it. I'm pretty sure there are still some ugly bugs hiding in > there. Unfortunately there is no flac edit tool I know of that can do that. I do not mean a tool that accepts flac as input and will decode it before starting any edit, that is highly unpractical if you have a 200GB flac file and need only the first 0.1% of it. > > You could submit a pull request (or send a patch so I can do it) but I > expect the CI will find something wrong with it. We could still try it > anyway. Great, I will do that. Best regards Stefan _______________________________________________ flac-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]