Mercurial > libavcodec.hg
comparison mdec.c @ 2270:21f450be6cb5 libavcodec
lowres width/height cleanup 3rd try
author | michael |
---|---|
date | Mon, 27 Sep 2004 11:50:56 +0000 |
parents | 934117474c3b |
children | f67b63ed036d |
comparison
equal
deleted
inserted
replaced
2269:535b7dfee202 | 2270:21f450be6cb5 |
---|---|
220 static void mdec_common_init(AVCodecContext *avctx){ | 220 static void mdec_common_init(AVCodecContext *avctx){ |
221 MDECContext * const a = avctx->priv_data; | 221 MDECContext * const a = avctx->priv_data; |
222 | 222 |
223 dsputil_init(&a->dsp, avctx); | 223 dsputil_init(&a->dsp, avctx); |
224 | 224 |
225 a->mb_width = (avctx->width + 15) / 16; | 225 a->mb_width = (avctx->coded_width + 15) / 16; |
226 a->mb_height = (avctx->height + 15) / 16; | 226 a->mb_height = (avctx->coded_height + 15) / 16; |
227 | 227 |
228 avctx->coded_frame= (AVFrame*)&a->picture; | 228 avctx->coded_frame= (AVFrame*)&a->picture; |
229 a->avctx= avctx; | 229 a->avctx= avctx; |
230 } | 230 } |
231 | 231 |