Mercurial > libavcodec.hg
comparison libopenjpeg.c @ 12372:914f484bb476 libavcodec
Remove use of the deprecated function avcodec_check_dimensions(), use
av_check_image_size() instead.
| author | stefano |
|---|---|
| date | Fri, 06 Aug 2010 09:37:04 +0000 |
| parents | c35d7bc64882 |
| children | 7e9b2d528e59 |
comparison
equal
deleted
inserted
replaced
| 12371:5dffb531b1cc | 12372:914f484bb476 |
|---|---|
| 111 opj_destroy_decompress(dec); | 111 opj_destroy_decompress(dec); |
| 112 return -1; | 112 return -1; |
| 113 } | 113 } |
| 114 width = image->comps[0].w << avctx->lowres; | 114 width = image->comps[0].w << avctx->lowres; |
| 115 height = image->comps[0].h << avctx->lowres; | 115 height = image->comps[0].h << avctx->lowres; |
| 116 if(avcodec_check_dimensions(avctx, width, height) < 0) { | 116 if(av_check_image_size(width, height, 0, avctx) < 0) { |
| 117 av_log(avctx, AV_LOG_ERROR, "%dx%d dimension invalid.\n", width, height); | 117 av_log(avctx, AV_LOG_ERROR, "%dx%d dimension invalid.\n", width, height); |
| 118 goto done; | 118 goto done; |
| 119 } | 119 } |
| 120 avcodec_set_dimensions(avctx, width, height); | 120 avcodec_set_dimensions(avctx, width, height); |
| 121 | 121 |
