comparison targa.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
144 } 144 }
145 145
146 if(s->picture.data[0]) 146 if(s->picture.data[0])
147 avctx->release_buffer(avctx, &s->picture); 147 avctx->release_buffer(avctx, &s->picture);
148 148
149 if(av_check_image_size(w, h, 0, avctx)) 149 if(av_image_check_size(w, h, 0, avctx))
150 return -1; 150 return -1;
151 if(w != avctx->width || h != avctx->height) 151 if(w != avctx->width || h != avctx->height)
152 avcodec_set_dimensions(avctx, w, h); 152 avcodec_set_dimensions(avctx, w, h);
153 if(avctx->get_buffer(avctx, p) < 0){ 153 if(avctx->get_buffer(avctx, p) < 0){
154 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); 154 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");