[FFmpeg-devel] [PATCH] set FONTCONFIG_PATH relative to ffmpeg binary, if it is a static build
george at nsup.org
Mon Feb 17 14:15:51 CET 2014
Le nonidi 29 pluviôse, an CCXXII, Helmut Tessarek a écrit :
> >>> + getcwd (curdir, PATH_MAX);
> > Is it necessary? A quick test shows that fontconfig can handle relative
> > paths just fine.
> Yes, this was necessary, otherwise fontconfig looks for the fontconfig path
> relative to the path where ffmpeg was started from and not relative to the
> ffmpeg binary.
> Took my quite some time to figure that out.
There is something fishy about this: getcwd() will return you the path where
ffmpeg was started from too. There is no reliable portable way of finding
the path of the binary that started a program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: Digital signature
More information about the ffmpeg-devel