diff options
| author | Dennis Fink | 2026-02-25 09:16:23 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-02-25 09:16:23 +0100 |
| commit | b10b81fefbe529be7db14ca65ec4b4a293782d39 (patch) | |
| tree | 807ed5ed084cded51ae3be85da965ce9d5e4705b /.gitignore | |
| parent | 48e3265ea845437bce4c4895275470e8a1776073 (diff) | |
| download | transcode.sh-b10b81fefbe529be7db14ca65ec4b4a293782d39.tar.gz transcode.sh-b10b81fefbe529be7db14ca65ec4b4a293782d39.zip | |
refactor(preset): return ffargs via nameref instead of global variable
load_preset now accepts the name of the caller's array as a second
argument and populates it via a nameref (local -n), replacing the
previous implicit global ffargs. The preset is sourced into a local
ffargs contained within load_preset's scope and copied to the caller
on return.
encode_one declares its own local ffargs=() and passes its name to
load_preset, making the data flow explicit and eliminating the implicit
coupling through the global. The nameref variable is prefixed with an
underscore to avoid accidental aliasing of any same-named local in the
calling scope.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
