[FFmpeg-devel] [PATCH] set FONTCONFIG_PATH relative to ffmpeg binary, if it is a static build

Nicolas George 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.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140217/dd36f9f1/attachment.asc>

More information about the ffmpeg-devel mailing list