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

Reinhard Tartler siretart at gmail.com
Sun Oct 13 13:51:39 UTC 2013


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?

Thanks!
Reinhard



More information about the pkg-multimedia-maintainers mailing list