Mercurial > libavcodec.hg
comparison iff.c @ 12462:ffb3668ff7af libavcodec
Use new imgutils.h API names, fix deprecation warnings.
author | stefano |
---|---|
date | Tue, 07 Sep 2010 19:15:29 +0000 |
parents | 914f484bb476 |
children |
comparison
equal
deleted
inserted
replaced
12461:25174028da0a | 12462:ffb3668ff7af |
---|---|
159 avctx->pix_fmt = PIX_FMT_BGR32; | 159 avctx->pix_fmt = PIX_FMT_BGR32; |
160 } else { | 160 } else { |
161 return AVERROR_INVALIDDATA; | 161 return AVERROR_INVALIDDATA; |
162 } | 162 } |
163 | 163 |
164 if ((err = av_check_image_size(avctx->width, avctx->height, 0, avctx))) | 164 if ((err = av_image_check_size(avctx->width, avctx->height, 0, avctx))) |
165 return err; | 165 return err; |
166 s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits to word-boundary | 166 s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits to word-boundary |
167 s->planebuf = av_malloc(s->planesize + FF_INPUT_BUFFER_PADDING_SIZE); | 167 s->planebuf = av_malloc(s->planesize + FF_INPUT_BUFFER_PADDING_SIZE); |
168 if (!s->planebuf) | 168 if (!s->planebuf) |
169 return AVERROR(ENOMEM); | 169 return AVERROR(ENOMEM); |