comparison pngdec.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
440 case MKTAG('I', 'H', 'D', 'R'): 440 case MKTAG('I', 'H', 'D', 'R'):
441 if (length != 13) 441 if (length != 13)
442 goto fail; 442 goto fail;
443 s->width = bytestream_get_be32(&s->bytestream); 443 s->width = bytestream_get_be32(&s->bytestream);
444 s->height = bytestream_get_be32(&s->bytestream); 444 s->height = bytestream_get_be32(&s->bytestream);
445 if(av_check_image_size(s->width, s->height, 0, avctx)){ 445 if(av_image_check_size(s->width, s->height, 0, avctx)){
446 s->width= s->height= 0; 446 s->width= s->height= 0;
447 goto fail; 447 goto fail;
448 } 448 }
449 s->bit_depth = *s->bytestream++; 449 s->bit_depth = *s->bytestream++;
450 s->color_type = *s->bytestream++; 450 s->color_type = *s->bytestream++;