Commit c8eba9f9 authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

ffv1dec: PIX_FMT_YUVA444P support

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0a30ea7
...@@ -1587,6 +1587,7 @@ static int read_header(FFV1Context *f){ ...@@ -1587,6 +1587,7 @@ static int read_header(FFV1Context *f){
} }
}else if(f->avctx->bits_per_raw_sample<=8 && f->transparency){ }else if(f->avctx->bits_per_raw_sample<=8 && f->transparency){
switch(16*f->chroma_h_shift + f->chroma_v_shift){ switch(16*f->chroma_h_shift + f->chroma_v_shift){
case 0x00: f->avctx->pix_fmt= PIX_FMT_YUVA444P; break;
case 0x11: f->avctx->pix_fmt= PIX_FMT_YUVA420P; break; case 0x11: f->avctx->pix_fmt= PIX_FMT_YUVA420P; break;
default: default:
av_log(f->avctx, AV_LOG_ERROR, "format not supported\n"); av_log(f->avctx, AV_LOG_ERROR, "format not supported\n");
......
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