Previously there was GetModuleFileNameA. wchartoansi is used to match old 
behaviour. I can replace it with wchartoutf8 if you wish.

> - if (GetModuleFileNameA(GetModuleHandleA(NULL), datadir, sizeof(datadir) - 
> 1))
> + if (wchartoansi(datadir_w, &datadir))
> + datadir = NULL;

From: Martin Storsjö <mar...@martin.st>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v3 4/5] fftools/cmdutils.c: Replace 
MAX_PATH-sized buffers with dynamically sized ones
Date: 16/02/2022 17:08:12 Europe/Moscow

Why would you use ansi here? Aren't all internal char based paths supposed 
to be UTF-8, unless passing them to an external API that expects e.g. ACP 
paths?

// Martin



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to