Commit 1a01147d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1enc: fix chroma_plane for rgb/rgba

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c387c45e
...@@ -719,9 +719,11 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -719,9 +719,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
case AV_PIX_FMT_RGB32: case AV_PIX_FMT_RGB32:
s->colorspace = 1; s->colorspace = 1;
s->transparency = 1; s->transparency = 1;
s->chroma_planes = 1;
break; break;
case AV_PIX_FMT_0RGB32: case AV_PIX_FMT_0RGB32:
s->colorspace = 1; s->colorspace = 1;
s->chroma_planes = 1;
break; break;
case AV_PIX_FMT_GBRP9: case AV_PIX_FMT_GBRP9:
if (!avctx->bits_per_raw_sample) if (!avctx->bits_per_raw_sample)
......
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