Commit 4b03d960 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1dec: use PIX_FMT_0RGB32 when there is no transparency plane

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2027d073
......@@ -1609,7 +1609,8 @@ static int read_header(FFV1Context *f){
av_log(f->avctx, AV_LOG_ERROR, "chroma subsampling not supported in this colorspace\n");
return -1;
}
f->avctx->pix_fmt= PIX_FMT_RGB32;
if(f->transparency) f->avctx->pix_fmt= PIX_FMT_RGB32;
else f->avctx->pix_fmt= PIX_FMT_0RGB32;
}else{
av_log(f->avctx, AV_LOG_ERROR, "colorspace not supported\n");
return -1;
......
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