diff options
author | Stephen Hutchinson <qyot27@gmail.com> | 2020-03-12 19:38:02 -0400 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-04-05 01:23:46 +0200 |
commit | 56f59246293de417d27ea7e27cb9a7727ee579fb (patch) | |
tree | 13e12045b1c99af900f73e030ed9e0057f18abf5 | |
parent | 6e959ad680288e34eccb4ee2dd205e4ffa495f95 (diff) | |
download | ffmpeg-56f59246293de417d27ea7e27cb9a7727ee579fb.tar.gz |
avformat/avisynth: fix deprecation warning
-rw-r--r-- | libavformat/avisynth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 43b65badc9..2c08ace8db 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -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)) { |