comparison pictordec.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 34beb0af8204
comparison
equal deleted inserted replaced
12461:25174028da0a 12462:ffb3668ff7af
134 } 134 }
135 135
136 avctx->pix_fmt = PIX_FMT_PAL8; 136 avctx->pix_fmt = PIX_FMT_PAL8;
137 137
138 if (s->width != avctx->width && s->height != avctx->height) { 138 if (s->width != avctx->width && s->height != avctx->height) {
139 if (av_check_image_size(s->width, s->height, 0, avctx) < 0) 139 if (av_image_check_size(s->width, s->height, 0, avctx) < 0)
140 return -1; 140 return -1;
141 avcodec_set_dimensions(avctx, s->width, s->height); 141 avcodec_set_dimensions(avctx, s->width, s->height);
142 if (s->frame.data[0]) 142 if (s->frame.data[0])
143 avctx->release_buffer(avctx, &s->frame); 143 avctx->release_buffer(avctx, &s->frame);
144 } 144 }