1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/avisynth: fix deprecation warning

This commit is contained in:
Stephen Hutchinson 2020-03-12 19:38:02 -04:00 committed by Marton Balint
parent 6e959ad680
commit 56f5924629

View File

@ -555,12 +555,12 @@ static int avisynth_open_file(AVFormatContext *s)
#ifdef _WIN32 #ifdef _WIN32
/* Convert UTF-8 to ANSI code page */ /* 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, WideCharToMultiByte(CP_THREAD_ACP, 0, filename_wc, -1, filename_ansi,
MAX_PATH * 4, NULL, NULL); MAX_PATH * 4, NULL, NULL);
arg = avs_new_value_string(filename_ansi); arg = avs_new_value_string(filename_ansi);
#else #else
arg = avs_new_value_string(s->filename); arg = avs_new_value_string(s->url);
#endif #endif
val = avs_library.avs_invoke(avs->env, "Import", arg, 0); val = avs_library.avs_invoke(avs->env, "Import", arg, 0);
if (avs_is_error(val)) { if (avs_is_error(val)) {