Mercurial > libavcodec.hg
comparison dirac.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 | 7dd2a45249a9 |
children | ffb3668ff7af |
comparison
equal
deleted
inserted
replaced
12371:5dffb531b1cc | 12372:914f484bb476 |
---|---|
23 * @file | 23 * @file |
24 * Dirac Decoder | 24 * Dirac Decoder |
25 * @author Marco Gerards <marco@gnu.org> | 25 * @author Marco Gerards <marco@gnu.org> |
26 */ | 26 */ |
27 | 27 |
28 #include "libavcore/imgutils.h" | |
28 #include "dirac.h" | 29 #include "dirac.h" |
29 #include "avcodec.h" | 30 #include "avcodec.h" |
30 #include "golomb.h" | 31 #include "golomb.h" |
31 #include "mpeg12data.h" | 32 #include "mpeg12data.h" |
32 | 33 |
266 | 267 |
267 // Override the defaults. | 268 // Override the defaults. |
268 if (parse_source_parameters(avctx, gb, source)) | 269 if (parse_source_parameters(avctx, gb, source)) |
269 return -1; | 270 return -1; |
270 | 271 |
271 if (avcodec_check_dimensions(avctx, source->width, source->height)) | 272 if (av_check_image_size(source->width, source->height, 0, avctx)) |
272 return -1; | 273 return -1; |
273 | 274 |
274 avcodec_set_dimensions(avctx, source->width, source->height); | 275 avcodec_set_dimensions(avctx, source->width, source->height); |
275 | 276 |
276 // currently only used to signal field coding | 277 // currently only used to signal field coding |