comparison libvpxdec.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 98004cbdda4e
children
comparison
equal deleted inserted replaced
12461:25174028da0a 12462:ffb3668ff7af
85 } 85 }
86 86
87 if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) { 87 if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) {
88 av_log(avctx, AV_LOG_INFO, "dimension change! %dx%d -> %dx%d\n", 88 av_log(avctx, AV_LOG_INFO, "dimension change! %dx%d -> %dx%d\n",
89 avctx->width, avctx->height, img->d_w, img->d_h); 89 avctx->width, avctx->height, img->d_w, img->d_h);
90 if (av_check_image_size(img->d_w, img->d_h, 0, avctx)) 90 if (av_image_check_size(img->d_w, img->d_h, 0, avctx))
91 return AVERROR_INVALIDDATA; 91 return AVERROR_INVALIDDATA;
92 avcodec_set_dimensions(avctx, img->d_w, img->d_h); 92 avcodec_set_dimensions(avctx, img->d_w, img->d_h);
93 } 93 }
94 picture->data[0] = img->planes[0]; 94 picture->data[0] = img->planes[0];
95 picture->data[1] = img->planes[1]; 95 picture->data[1] = img->planes[1];