[FFmpeg-cvslog] ffv1: Assume bitdepth 0 means 8bit

Luca Barbato git at videolan.org
Sun Jan 12 16:44:06 CET 2014


ffmpeg | branch: release/1.1 | Luca Barbato <lu_zero at gentoo.org> | Sun Oct 13 15:34:47 2013 +0200| [2656036757227148a442d9c0934ee49bb97a31d1] | committer: Reinhard Tartler

ffv1: Assume bitdepth 0 means 8bit

CC: libav-stable at libav.org
Reported-by: debian/726189
(cherry picked from commit a90905db2e6ab1840890f3a88bfd3bf008b9d886)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2656036757227148a442d9c0934ee49bb97a31d1
---

 libavcodec/ffv1dec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 97e2bd5..e74598c 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -670,6 +670,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;



More information about the ffmpeg-cvslog mailing list