diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-08 08:49:36 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-08 08:49:36 +0200 |
commit | 4e4634aa160ad0e27bee5e7809edbfcace08eba6 (patch) | |
tree | e3cbfe54d4703355ef5e9f532ad3869c44cbbddd /libavcodec | |
parent | 8ba543eb3b782be84bc431214ac4d460e9038a31 (diff) | |
download | ffmpeg-4e4634aa160ad0e27bee5e7809edbfcace08eba6.tar.gz |
Support yuva422p in ffv1.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ffv1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index f418d49a7e..32eab51441 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -964,6 +964,7 @@ static av_cold int encode_init(AVCodecContext *avctx) s->colorspace= 0; break; case PIX_FMT_YUVA444P: + case PIX_FMT_YUVA422P: case PIX_FMT_YUVA420P: s->chroma_planes= 1; s->colorspace= 0; @@ -1804,6 +1805,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 0x10: f->avctx->pix_fmt= PIX_FMT_YUVA422P; break; case 0x11: f->avctx->pix_fmt= PIX_FMT_YUVA420P; break; default: av_log(f->avctx, AV_LOG_ERROR, "format not supported\n"); |