mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 10:51:38 +00:00
fftools: Fix preset search pathes
regression since 13350e81fd
Fix looking for .ffmpeg subfolder in FFMPEG_DATADIR and inversely not in HOME.
Fix search order (documentation).
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
59018254c7
commit
d3cf7be5a4
@ -822,8 +822,8 @@ FILE *get_preset_file(char *filename, size_t filename_size,
|
||||
#endif
|
||||
char *env_home = getenv_utf8("HOME");
|
||||
char *env_ffmpeg_datadir = getenv_utf8("FFMPEG_DATADIR");
|
||||
const char *base[3] = { env_home,
|
||||
env_ffmpeg_datadir,
|
||||
const char *base[3] = { env_ffmpeg_datadir,
|
||||
env_home, /* index=1(HOME) is special: search in a .ffmpeg subfolder */
|
||||
FFMPEG_DATADIR, };
|
||||
|
||||
if (is_path) {
|
||||
|
Loading…
Reference in New Issue
Block a user