[FFmpeg-devel] [PATCH v3 4/5] fftools/cmdutils.c: Replace MAX_PATH-sized buffers with dynamically sized ones

Martin Storsjö martin at martin.st
Wed Feb 16 18:50:46 EET 2022



> On Feb 16, 2022, at 18:32, nil-admirari at mailo.com wrote:
> 
> Previously there was GetModuleFileNameA. wchartoansi is used to match old behaviour. I can replace it with wchartoutf8 if you wish.

Oh, right. Well yes - if the path later is going to end up in a codepath that expects it to be UTF8 (please do check!), then we should go that way instead, then the existing code had a latent bug wrt that.

(Also, don’t top post!)

// Martin



More information about the ffmpeg-devel mailing list