mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02: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…
x
Reference in New Issue
Block a user