Am 18.06.25 um 08:21 schrieb Martijn van Beurden:
Op di 17 jun 2025 00:11 schreef Stefan Oltmanns <stefan-oltma...@gmx.net>:

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 -- flac-dev@xiph.org
To unsubscribe send an email to flac-dev-le...@xiph.org

Reply via email to