[FFmpeg-devel] [PATCH v17 1/5] libavutil: Add wchartoutf8(), wchartoansi(), utf8toansi() and getenv_utf8()

nil-admirari at mailo.com nil-admirari at mailo.com
Sun Jun 19 14:56:33 EEST 2022


> This forces allocations and frees in scenarios where this is wholly
> unnecessary. This can be avoided by adding a custom deallocator for
> strings returned via getenv_utf8: Namely a define/wrapper around av_free
> in the _WIN32 and a no-op else.

Done: https://ffmpeg.org/pipermail/ffmpeg-devel/2022-June/297804.html

Note, however, that the introduction of freeenv_utf8()
doubles allocations and deallocations in vf_frei0r.c on Windows:
https://ffmpeg.org/pipermail/ffmpeg-devel/2022-June/297802.html

These additional memory operations can be avoided only with a whole bunch
of new #ifdef _WIN32 and #if HAVE_GETENV, which haven't been done.





More information about the ffmpeg-devel mailing list