aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-15 13:03:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-15 13:03:53 +0200
commitc387c45e8301bc49d5b233e890839cdc0f8b3752 (patch)
tree4c31f122c968aa78340753c2ae626161284fafc2 /libavcodec/ffv1enc.c
parent8ec618826302c2c6661453b515d4974eb3178a96 (diff)
downloadandroid_external_ffmpeg-c387c45e8301bc49d5b233e890839cdc0f8b3752.tar.gz
android_external_ffmpeg-c387c45e8301bc49d5b233e890839cdc0f8b3752.tar.bz2
android_external_ffmpeg-c387c45e8301bc49d5b233e890839cdc0f8b3752.zip
ffv1: fix plane_count at version 1.4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r--libavcodec/ffv1enc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 128eeb269d..032375aa45 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -797,6 +797,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
if (!s->transparency)
s->plane_count = 2;
+ if (!s->chroma_planes && s->version > 3)
+ s->plane_count--;
+
avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);
s->picture_number = 0;