On Tue, 12 Apr 2016 21:32:43 +0200
Carl Eugen Hoyos <ceho...@ag.or.at> wrote:

> diff --git a/libavformat/webpenc.c b/libavformat/webpenc.c
> index 2e0147c..38183ff 100644
> --- a/libavformat/webpenc.c
> +++ b/libavformat/webpenc.c
> @@ -107,7 +107,9 @@ static int flush(AVFormatContext *s, int trailer, int64_t 
> pts)
>          if (w->frame_count == 1) {
>              if (!trailer) {
>                  vp8x = 1;
> -                flags |= 2 + 16;
> +                flags |= 2;
> +                if (st->codecpar->format != AV_PIX_FMT_YUV420P)
> +                    flags |= 16; // stream may contain transparency 
> information
>              }
>  
>              if (vp8x) {

The pixel format shouldn't be required to be set in this muxer. It's
generally not needed. It also means that if the user doesn't set it,
everything will apparently work well, but it will be flagged as alpha.

When will you learn to send properly formatted patches (git
format-patch)?
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to