[FFmpeg-cvslog] avcodec/ffv1enc: fix chroma_plane for rgb/rgba

Michael Niedermayer git at videolan.org
Thu Aug 15 13:42:44 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 15 13:26:50 2013 +0200| [1a01147d7ae57f6d5684ee2908982fa224bef6da] | committer: Michael Niedermayer

avcodec/ffv1enc: fix chroma_plane for rgb/rgba

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a01147d7ae57f6d5684ee2908982fa224bef6da
---

 libavcodec/ffv1enc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 032375a..3c68dab 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)



More information about the ffmpeg-cvslog mailing list