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

Matt Oliver protogonoi at gmail.com
Tue Dec 31 09:24:56 EET 2019


On Tue, 31 Dec 2019 at 14:16, Stephen Hutchinson <qyot27 at gmail.com> 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.  How are you compiling FFmpeg as unicode in order to expose the
> issue, though?
>
>
I was actually just searching for instances of LoadLibrary due to an
separate issue from another patch. Not specifying the 'A' is a common
source of issues ive had in other projects so i thought id preemptively fix
this one. Happens when another external compile pollutes cflags with
UNICODE.


More information about the ffmpeg-devel mailing list