diff mbox

[FFmpeg-devel] compat/avisynth: Fix unicode compilation.

Message ID CAHVN4mhXhuuBkXJ8au8=v977_cGgTYXd5xiRnsKjVRK-Y=6anw@mail.gmail.com
State Accepted
Headers show

Commit Message

Matt Oliver Dec. 30, 2019, 4:11 p.m. UTC
---
 compat/avisynth/avisynth_c.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--

Comments

Michael Niedermayer Jan. 1, 2020, 3:40 p.m. UTC | #1
On Mon, Dec 30, 2019 at 10:16:44PM -0500, Stephen Hutchinson wrote:
> On 12/30/2019 11:11 AM, Matt Oliver wrote:
> >---
> >  compat/avisynth/avisynth_c.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/compat/avisynth/avisynth_c.h b/compat/avisynth/avisynth_c.h
> >index 8d17125adc..9ff9321552 100644
> >--- a/compat/avisynth/avisynth_c.h
> >+++ b/compat/avisynth/avisynth_c.h
> >@@ -1096,7 +1096,7 @@ AVSC_INLINE AVS_Library * avs_load_library() {
> >    AVS_Library *library = (AVS_Library *)malloc(sizeof(AVS_Library));
> >    if (library == NULL)
> >      return NULL;
> >-  library->handle = LoadLibrary("avisynth");
> >+  library->handle = LoadLibraryA("avisynth");
> >    if (library->handle == NULL)
> >      goto fail;
> >
> >--
> 
> LGTM.  

will apply

thx


> How are you compiling FFmpeg as unicode in order to expose the issue,
> though?

[...]
diff mbox

Patch

diff --git a/compat/avisynth/avisynth_c.h b/compat/avisynth/avisynth_c.h
index 8d17125adc..9ff9321552 100644
--- a/compat/avisynth/avisynth_c.h
+++ b/compat/avisynth/avisynth_c.h
@@ -1096,7 +1096,7 @@  AVSC_INLINE AVS_Library * avs_load_library() {
   AVS_Library *library = (AVS_Library *)malloc(sizeof(AVS_Library));
   if (library == NULL)
     return NULL;
-  library->handle = LoadLibrary("avisynth");
+  library->handle = LoadLibraryA("avisynth");
   if (library->handle == NULL)
     goto fail;