comparison sunrast.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
96 } 96 }
97 97
98 if (p->data[0]) 98 if (p->data[0])
99 avctx->release_buffer(avctx, p); 99 avctx->release_buffer(avctx, p);
100 100
101 if (av_check_image_size(w, h, 0, avctx)) 101 if (av_image_check_size(w, h, 0, avctx))
102 return -1; 102 return -1;
103 if (w != avctx->width || h != avctx->height) 103 if (w != avctx->width || h != avctx->height)
104 avcodec_set_dimensions(avctx, w, h); 104 avcodec_set_dimensions(avctx, w, h);
105 if (avctx->get_buffer(avctx, p) < 0) { 105 if (avctx->get_buffer(avctx, p) < 0) {
106 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); 106 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");