comparison pcx.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
141 buf += 128; 141 buf += 128;
142 142
143 if (p->data[0]) 143 if (p->data[0])
144 avctx->release_buffer(avctx, p); 144 avctx->release_buffer(avctx, p);
145 145
146 if (av_check_image_size(w, h, 0, avctx)) 146 if (av_image_check_size(w, h, 0, avctx))
147 return -1; 147 return -1;
148 if (w != avctx->width || h != avctx->height) 148 if (w != avctx->width || h != avctx->height)
149 avcodec_set_dimensions(avctx, w, h); 149 avcodec_set_dimensions(avctx, w, h);
150 if (avctx->get_buffer(avctx, p) < 0) { 150 if (avctx->get_buffer(avctx, p) < 0) {
151 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); 151 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");