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/h263dec.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/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index fa8fd1f9ab..b087933f66 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -59,12 +59,14 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) switch(avctx->codec->id) { case CODEC_ID_H263: s->unrestricted_mv= 0; + avctx->chroma_sample_location = AVCHROMA_LOC_CENTER; break; case CODEC_ID_MPEG4: s->decode_mb= ff_mpeg4_decode_mb; s->time_increment_bits = 4; /* default value for broken headers */ s->h263_pred = 1; s->low_delay = 0; //default, might be overriden in the vol header during header parsing + avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; break; case CODEC_ID_MSMPEG4V1: s->h263_msmpeg4 = 1; @@ -96,6 +98,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) s->h263_msmpeg4 = 1; s->h263_pred = 1; s->msmpeg4_version=6; + avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; break; case CODEC_ID_H263I: break; |