ffv1: Assume bitdepth 0 means 8bit
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 13 Oct 2013 13:34:47 +0000 (15:34 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 15 Oct 2013 21:58:20 +0000 (23:58 +0200)
CC: libav-stable@libav.org
Reported-by: debian/726189
libavcodec/ffv1dec.c

index 584755d..f0a409f 100644 (file)
@@ -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;