aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-22 03:58:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-22 04:45:13 +0200
commitb4b7471ec473b8b2a463963e50989fd7676b4d7c (patch)
treec99d84bee3d176ad69b136466f7636b36d8d8825 /libavcodec
parent81416c2f64415cfa47a21c13f8142b73094a2887 (diff)
downloadffmpeg-b4b7471ec473b8b2a463963e50989fd7676b4d7c.tar.gz
snowenc: set chroma subsample factors correctly for non 420
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snowenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 383e6531c0..d66eb39e46 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -230,9 +230,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "pixel format not supported\n");
return -1;
}
-// avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);
- s->chroma_h_shift= 1;
- s->chroma_v_shift= 1;
+ avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);
ff_set_cmp(&s->dsp, s->dsp.me_cmp, s->avctx->me_cmp);
ff_set_cmp(&s->dsp, s->dsp.me_sub_cmp, s->avctx->me_sub_cmp);