diff options
| author | Dennis Fink | 2026-02-24 21:16:10 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-02-24 21:16:10 +0100 |
| commit | c9f7b81f013eca9d25d956f1f644c05ec9814ae0 (patch) | |
| tree | 72dfd157613088fc7b0cd236ecf6212939829df3 /LICENSES/BSD-3-Clause.txt | |
| parent | 63780c4c4b5a15b95631bab8abfe86fcd85fc9d0 (diff) | |
| download | transcode.sh-c9f7b81f013eca9d25d956f1f644c05ec9814ae0.tar.gz transcode.sh-c9f7b81f013eca9d25d956f1f644c05ec9814ae0.zip | |
fix: improve input validation and error reporting
Validate the nice value is an integer in [-20, 19] at startup rather
than letting nice(1) fail with a cryptic error at encode time.
In encode_one, move the "Processing" message after the empty-string
guard so it is not printed for blank lines, include the filename in the
"Not found" error, and add a readability check so unreadable files are
rejected with a clear message before ffprobe is invoked.
Validate that the encode file (-f) exists before entering the read
loop, exiting with a usage error rather than a silent empty run.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
