Skip to content

Instantly share code, notes, and snippets.

@andyvand
Last active May 23, 2025 11:28
Show Gist options
  • Select an option

  • Save andyvand/770e25f7598ba86a2cc49c4e9641d0a8 to your computer and use it in GitHub Desktop.

Select an option

Save andyvand/770e25f7598ba86a2cc49c4e9641d0a8 to your computer and use it in GitHub Desktop.
ffmpeg XP patch
diff -Nur ffmpeg-7.1.1/libavutil/wchar_filename.h ffmpeg-7.1.1-XP/libavutil/wchar_filename.h
--- ffmpeg-7.1.1/libavutil/wchar_filename.h 2025-03-02 22:08:21
+++ ffmpeg-7.1.1-XP/libavutil/wchar_filename.h 2025-05-23 12:58:40
@@ -49,7 +49,7 @@
static inline int wchartocp(unsigned int code_page, const wchar_t *filename_w,
char **filename)
{
- DWORD flags = code_page == CP_UTF8 ? WC_ERR_INVALID_CHARS : 0;
+ DWORD flags = 0;
int num_chars = WideCharToMultiByte(code_page, flags, filename_w, -1,
NULL, 0, NULL, NULL);
if (num_chars <= 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment