Commit a90905db authored by Luca Barbato's avatar Luca Barbato

ffv1: Assume bitdepth 0 means 8bit

CC: libav-stable@libav.org
Reported-by: debian/726189
parent a84616b7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment