diff mjpegdec.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 84932ac233a5
children 473fbc242b43
line wrap: on
line diff
--- a/mjpegdec.c	Mon May 11 02:41:50 2009 +0000
+++ b/mjpegdec.c	Mon May 11 04:34:23 2009 +0000
@@ -85,6 +85,7 @@
     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);