comparison dpx.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
138 return -1; 138 return -1;
139 } 139 }
140 140
141 if (s->picture.data[0]) 141 if (s->picture.data[0])
142 avctx->release_buffer(avctx, &s->picture); 142 avctx->release_buffer(avctx, &s->picture);
143 if (av_check_image_size(w, h, 0, avctx)) 143 if (av_image_check_size(w, h, 0, avctx))
144 return -1; 144 return -1;
145 if (w != avctx->width || h != avctx->height) 145 if (w != avctx->width || h != avctx->height)
146 avcodec_set_dimensions(avctx, w, h); 146 avcodec_set_dimensions(avctx, w, h);
147 if (avctx->get_buffer(avctx, p) < 0) { 147 if (avctx->get_buffer(avctx, p) < 0) {
148 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); 148 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");