diff options
author | David Conrad <lessen42@gmail.com> | 2009-05-11 04:34:23 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-05-11 04:34:23 +0000 |
commit | 580a7465fb416782a1d5ad95011351b9c257f0de (patch) | |
tree | f26ec625283620ebc2c6df689bd6cbffba0d6cc8 /libavcodec/vp3.c | |
parent | 014b7ecb6643332af35251c751aebd04bac4bb1e (diff) | |
download | ffmpeg-580a7465fb416782a1d5ad95011351b9c257f0de.tar.gz |
Add a chroma_sample_location field to define positioning of chroma samples
Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 982ca2fb23..c1ca98f3c4 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1639,6 +1639,7 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx) 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); |