mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/ffv1enc: fix chroma_plane for rgb/rgba
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c387c45e83
commit
1a01147d7a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue