comparison eamad.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
259 s->height = AV_RL16(&buf[10]); 259 s->height = AV_RL16(&buf[10]);
260 calc_intra_matrix(t, buf[13]); 260 calc_intra_matrix(t, buf[13]);
261 buf += 16; 261 buf += 16;
262 262
263 if (avctx->width != s->width || avctx->height != s->height) { 263 if (avctx->width != s->width || avctx->height != s->height) {
264 if (av_check_image_size(s->width, s->height, 0, avctx) < 0) 264 if (av_image_check_size(s->width, s->height, 0, avctx) < 0)
265 return -1; 265 return -1;
266 avcodec_set_dimensions(avctx, s->width, s->height); 266 avcodec_set_dimensions(avctx, s->width, s->height);
267 if (t->frame.data[0]) 267 if (t->frame.data[0])
268 avctx->release_buffer(avctx, &t->frame); 268 avctx->release_buffer(avctx, &t->frame);
269 } 269 }