Mercurial > libavcodec.hg
diff vp3.c @ 9626:bd3e11b60ccd libavcodec
Add a chroma_sample_location field to define positioning of chroma samples
author | conrad |
---|---|
date | Mon, 11 May 2009 04:34:23 +0000 |
parents | 483ba97736f8 |
children | f1dc62781766 |
line wrap: on
line diff
--- a/vp3.c Mon May 11 02:41:50 2009 +0000 +++ b/vp3.c Mon May 11 04:34:23 2009 +0000 @@ -1639,6 +1639,7 @@ s->width = (avctx->width + 15) & 0xFFFFFFF0; s->height = (avctx->height + 15) & 0xFFFFFFF0; avctx->pix_fmt = PIX_FMT_YUV420P; + avctx->chroma_sample_location = AVCHROMA_LOC_CENTER; if(avctx->idct_algo==FF_IDCT_AUTO) avctx->idct_algo=FF_IDCT_VP3; dsputil_init(&s->dsp, avctx);