Browse Source

avcodec/ffv1enc: fix chroma_plane for rgb/rgba

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
1a01147d7a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/ffv1enc.c

+ 2
- 0
libavcodec/ffv1enc.c View File

@@ -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)


Loading…
Cancel
Save