Mercurial > libavcodec.hg
comparison qtrleenc.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 | fdafbcef52f5 |
children | ffb3668ff7af |
comparison
equal
deleted
inserted
replaced
12371:5dffb531b1cc | 12372:914f484bb476 |
---|---|
20 * You should have received a copy of the GNU Lesser General Public | 20 * You should have received a copy of the GNU Lesser General Public |
21 * License along with FFmpeg; if not, write to the Free Software | 21 * License along with FFmpeg; if not, write to the Free Software |
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
23 */ | 23 */ |
24 | 24 |
25 #include "libavcore/imgutils.h" | |
25 #include "avcodec.h" | 26 #include "avcodec.h" |
26 #include "bytestream.h" | 27 #include "bytestream.h" |
27 | 28 |
28 /** Maximum RLE code for bulk copy */ | 29 /** Maximum RLE code for bulk copy */ |
29 #define MAX_RLE_BULK 127 | 30 #define MAX_RLE_BULK 127 |
60 | 61 |
61 static av_cold int qtrle_encode_init(AVCodecContext *avctx) | 62 static av_cold int qtrle_encode_init(AVCodecContext *avctx) |
62 { | 63 { |
63 QtrleEncContext *s = avctx->priv_data; | 64 QtrleEncContext *s = avctx->priv_data; |
64 | 65 |
65 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | 66 if (av_check_image_size(avctx->width, avctx->height, 0, avctx) < 0) { |
66 return -1; | 67 return -1; |
67 } | 68 } |
68 s->avctx=avctx; | 69 s->avctx=avctx; |
69 | 70 |
70 switch (avctx->pix_fmt) { | 71 switch (avctx->pix_fmt) { |