aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-15 13:26:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-15 13:27:29 +0200
commit1a01147d7ae57f6d5684ee2908982fa224bef6da (patch)
tree4c8de5c49869091b377697718f55513d54805697 /libavcodec/ffv1enc.c
parentc387c45e8301bc49d5b233e890839cdc0f8b3752 (diff)
downloadandroid_external_ffmpeg-1a01147d7ae57f6d5684ee2908982fa224bef6da.tar.gz
android_external_ffmpeg-1a01147d7ae57f6d5684ee2908982fa224bef6da.tar.bz2
android_external_ffmpeg-1a01147d7ae57f6d5684ee2908982fa224bef6da.zip
avcodec/ffv1enc: fix chroma_plane for rgb/rgba
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r--libavcodec/ffv1enc.c2
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)