Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9625:7c4ab94a82d8 | 9626:bd3e11b60ccd |
---|---|
83 s->buffer_size = 0; | 83 s->buffer_size = 0; |
84 s->buffer = NULL; | 84 s->buffer = NULL; |
85 s->start_code = -1; | 85 s->start_code = -1; |
86 s->first_picture = 1; | 86 s->first_picture = 1; |
87 s->org_height = avctx->coded_height; | 87 s->org_height = avctx->coded_height; |
88 avctx->chroma_sample_location = AVCHROMA_LOC_CENTER; | |
88 | 89 |
89 build_basic_mjpeg_vlc(s); | 90 build_basic_mjpeg_vlc(s); |
90 | 91 |
91 if (avctx->flags & CODEC_FLAG_EXTERN_HUFF) | 92 if (avctx->flags & CODEC_FLAG_EXTERN_HUFF) |
92 { | 93 { |