Bug#726190: libavcodec54: Broken encode with codec FFV! pixfmt RGB32

Dima Kogan dima at secretsauce.net
Sun Oct 13 19:40:36 UTC 2013


Reinhard Tartler <siretart at gmail.com> writes:

> This patch is supposed to fix it:
>
> http://pastebin.com/6YNnNZwy:
>
> commit 2b99029ca865665e51b2111a7dd5c564f160ff3b
> Author: Luca Barbato <lu_zero at gentoo.org>
> Date:   Sun Oct 13 15:34:47 2013 +0200
>
>     ffv1: Assume bitdepth 0 means 8bit
>
>     CC: libav-stable at libav.org
>
> diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
> index 584755d..f0a409f 100644
> --- a/libavcodec/ffv1dec.c
> +++ b/libavcodec/ffv1dec.c
> @@ -669,6 +669,7 @@ static int read_header(FFV1Context *f)
>              return AVERROR(ENOSYS);
>          }
>          switch (f->avctx->bits_per_raw_sample) {
> +        case 0:
>          case 8:
>              f->avctx->pix_fmt = AV_PIX_FMT_RGB32;
>              break;
>
>
> Could you test it?

I tested it. This patch fixes

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726189

which makes sense, given the code that it touches. THIS bug remains
unfixed, however, since it deals with encoding.

Thanks.



More information about the pkg-multimedia-maintainers mailing list