diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-15 13:26:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-15 13:27:29 +0200 |
commit | 1a01147d7ae57f6d5684ee2908982fa224bef6da (patch) | |
tree | 4c8de5c49869091b377697718f55513d54805697 /libavcodec | |
parent | c387c45e8301bc49d5b233e890839cdc0f8b3752 (diff) | |
download | ffmpeg-1a01147d7ae57f6d5684ee2908982fa224bef6da.tar.gz |
avcodec/ffv1enc: fix chroma_plane for rgb/rgba
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ffv1enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 032375aa45..3c68dabc01 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -719,9 +719,11 @@ static av_cold int encode_init(AVCodecContext *avctx) case AV_PIX_FMT_RGB32: s->colorspace = 1; s->transparency = 1; + s->chroma_planes = 1; break; case AV_PIX_FMT_0RGB32: s->colorspace = 1; + s->chroma_planes = 1; break; case AV_PIX_FMT_GBRP9: if (!avctx->bits_per_raw_sample) |