ffv1dec: PIX_FMT_YUVA444P support
authorPaul B Mahol <onemda@gmail.com>
Tue, 31 Jan 2012 20:18:24 +0000 (20:18 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 31 Jan 2012 20:45:34 +0000 (21:45 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1.c

index 782f97b..7a88688 100644 (file)
@@ -1587,6 +1587,7 @@ static int read_header(FFV1Context *f){
             }
         }else if(f->avctx->bits_per_raw_sample<=8 && f->transparency){
             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;
             default:
                 av_log(f->avctx, AV_LOG_ERROR, "format not supported\n");