Allow --skip and --until with a total sample count of 0#838
Allow --skip and --until with a total sample count of 0#838ktmf01 merged 3 commits intoxiph:masterfrom
Conversation
|
To be clear, will |
|
Using
It would probably be better would to split it into two error messages and make an individual one for My patch did not affect this behavior at all. If you mean encoding, I don't know, because my patch only affects decoding. |
|
My question was on what it was supposed to, apologies for being unclear. In part asking because the help text says --until stops before the number given. Which holds if you start counting at 0 like code does, but not all humans do ... Likely the help text should say that
Yes, as of now it does. Both for encoding and decoding.
I would want --until to work precisely the same for encoding and for decoding. Of course error messages should make sense too. |
|
Yes, it definitely makes sense to have |
|
This has very high value implications for FM RF Archival usage as flac is both a capture standard (since v1.5.0 a defacto) and a gen/cold storage standard for archives, these are files that are upto 11 hours long at 40-65MSPS 8-12bit rates. |
|
Just as a heads-up: the reason I haven't merged this, is because CIFuzz doesn't run correctly. I'm currently trying to fix this. I'll rerun tests when this is finished |
Just to trigger checks
|
@Stefan-Olt could you synchronize you branch (with the button pictured below, at https://github.com/Stefan-Olt/flac/tree/master), and then check whether it still works as you intended? |
|
I synchronized my branch and it works fine just like before. 15 of the 18 automatic tests have already passed, CIFuzz is still in progress. |
|
I didn't mean the automated checks. Just to be sure: did you check whether your PR still does what it intends to do? Can you still use skip and until with a total sample count of 0? Because no automated tests for that behaviour have been added yet. |
Sorry for being unclear: In the first sentence I was referring to manual testing, works just fine like before (including problem cases like skip or until after end of file). Only the automated tests are not completed yet. |
|
Merged, thanks! |
This patch will allow use of
--skipand--untilwhen the total sample count is 0.--untilis not possible if relative offset from the end (error is shown). Relative from--skipvalue is possible.--skipwith a value after the end of the file will result in a seek error. As there is no information why seeking has failed a more detailed message is not possible.