[FFmpeg-devel] [PATCH] avcodec[/format]/webpenc: use WebPAnimEncoder API to generate animated WebP

Pascal Massimino pascal.massimino at gmail.com
Tue Mar 31 22:08:16 CEST 2015


Hi,

On Sat, Mar 28, 2015 at 4:51 AM, James Almer <jamrial at gmail.com> wrote:

> On 27/03/15 7:02 AM, Pascal Massimino wrote:
> > diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c
> > index ee110de..d4411a9 100644
> > --- a/libavformat/webpenc.c
> > +++ b/libavformat/webpenc.c
> > @@ -24,10 +24,20 @@
> >  #include "avformat.h"
> >  #include "internal.h"
> >
> > +#include <webp/encode.h>
> > +#if (WEBP_ENCODER_ABI_VERSION >= 0x0206)
> > +#include <webp/mux.h>
> > +#if (WEBP_MUX_ABI_VERSION >= 0x0104)
> > +#define USE_WEBP_ANIMENCODER
> > +#endif
> > +#endif
>
> While checking for CONFIG_LIBWEBP would be enough to know if webp/encode.h
> is available
> here as i mentioned in a previous email, it doesn't guarantee that
> webp/mux.h is available
> as well, so you will need to add webp_mux_h to HEADERS_LIST in configure
> (the check for
> libwebpmux you already added will enable it if available) and use the
> resulting define.
>

thanks for the suggestions, i'll rework and post an updated patch soon.

skal/


More information about the ffmpeg-devel mailing list