comparison tiff.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
304 default: 304 default:
305 av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%d, %d components)\n", s->bpp, count); 305 av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%d, %d components)\n", s->bpp, count);
306 return -1; 306 return -1;
307 } 307 }
308 if(s->width != s->avctx->width || s->height != s->avctx->height){ 308 if(s->width != s->avctx->width || s->height != s->avctx->height){
309 if(av_check_image_size(s->width, s->height, 0, s->avctx)) 309 if(av_image_check_size(s->width, s->height, 0, s->avctx))
310 return -1; 310 return -1;
311 avcodec_set_dimensions(s->avctx, s->width, s->height); 311 avcodec_set_dimensions(s->avctx, s->width, s->height);
312 } 312 }
313 if(s->picture.data[0]) 313 if(s->picture.data[0])
314 s->avctx->release_buffer(s->avctx, &s->picture); 314 s->avctx->release_buffer(s->avctx, &s->picture);
506 /* now we have the data and may start decoding */ 506 /* now we have the data and may start decoding */
507 if(!p->data[0]){ 507 if(!p->data[0]){
508 s->bpp = 1; 508 s->bpp = 1;
509 avctx->pix_fmt = PIX_FMT_MONOBLACK; 509 avctx->pix_fmt = PIX_FMT_MONOBLACK;
510 if(s->width != s->avctx->width || s->height != s->avctx->height){ 510 if(s->width != s->avctx->width || s->height != s->avctx->height){
511 if(av_check_image_size(s->width, s->height, 0, s->avctx)) 511 if(av_image_check_size(s->width, s->height, 0, s->avctx))
512 return -1; 512 return -1;
513 avcodec_set_dimensions(s->avctx, s->width, s->height); 513 avcodec_set_dimensions(s->avctx, s->width, s->height);
514 } 514 }
515 if(s->picture.data[0]) 515 if(s->picture.data[0])
516 s->avctx->release_buffer(s->avctx, &s->picture); 516 s->avctx->release_buffer(s->avctx, &s->picture);