Skip to content

Commit

Permalink
avformat/avisynth: fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
qyot27 authored and cus committed Apr 4, 2020
1 parent 6e959ad commit 56f5924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavformat/avisynth.c
Expand Up @@ -555,12 +555,12 @@ static int avisynth_open_file(AVFormatContext *s)

#ifdef _WIN32
/* Convert UTF-8 to ANSI code page */
MultiByteToWideChar(CP_UTF8, 0, s->filename, -1, filename_wc, MAX_PATH * 4);
MultiByteToWideChar(CP_UTF8, 0, s->url, -1, filename_wc, MAX_PATH * 4);
WideCharToMultiByte(CP_THREAD_ACP, 0, filename_wc, -1, filename_ansi,
MAX_PATH * 4, NULL, NULL);
arg = avs_new_value_string(filename_ansi);
#else
arg = avs_new_value_string(s->filename);
arg = avs_new_value_string(s->url);
#endif
val = avs_library.avs_invoke(avs->env, "Import", arg, 0);
if (avs_is_error(val)) {
Expand Down

0 comments on commit 56f5924

Please sign in to comment.