From 580a7465fb416782a1d5ad95011351b9c257f0de Mon Sep 17 00:00:00 2001 From: David Conrad Date: Mon, 11 May 2009 04:34:23 +0000 Subject: Add a chroma_sample_location field to define positioning of chroma samples Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mjpegdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/mjpegdec.c') diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 150e835269..9fe8b6f040 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -85,6 +85,7 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx) s->start_code = -1; s->first_picture = 1; s->org_height = avctx->coded_height; + avctx->chroma_sample_location = AVCHROMA_LOC_CENTER; build_basic_mjpeg_vlc(s); -- cgit v1.2.3