Mercurial > libavcodec.hg
comparison libopenjpeg.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 | 7e9b2d528e59 |
children |
comparison
equal
deleted
inserted
replaced
12461:25174028da0a | 12462:ffb3668ff7af |
---|---|
112 opj_destroy_decompress(dec); | 112 opj_destroy_decompress(dec); |
113 return -1; | 113 return -1; |
114 } | 114 } |
115 width = image->comps[0].w << avctx->lowres; | 115 width = image->comps[0].w << avctx->lowres; |
116 height = image->comps[0].h << avctx->lowres; | 116 height = image->comps[0].h << avctx->lowres; |
117 if(av_check_image_size(width, height, 0, avctx) < 0) { | 117 if(av_image_check_size(width, height, 0, avctx) < 0) { |
118 av_log(avctx, AV_LOG_ERROR, "%dx%d dimension invalid.\n", width, height); | 118 av_log(avctx, AV_LOG_ERROR, "%dx%d dimension invalid.\n", width, height); |
119 goto done; | 119 goto done; |
120 } | 120 } |
121 avcodec_set_dimensions(avctx, width, height); | 121 avcodec_set_dimensions(avctx, width, height); |
122 | 122 |