Mercurial > libavcodec.hg
comparison vp8.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 | 4787027b74b1 |
children | a0c84084fa2f |
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 "vp56.h" | 27 #include "vp56.h" |
27 #include "vp8data.h" | 28 #include "vp8data.h" |
28 #include "vp8dsp.h" | 29 #include "vp8dsp.h" |
29 #include "h264pred.h" | 30 #include "h264pred.h" |
222 s->macroblocks = NULL; | 223 s->macroblocks = NULL; |
223 } | 224 } |
224 | 225 |
225 static int update_dimensions(VP8Context *s, int width, int height) | 226 static int update_dimensions(VP8Context *s, int width, int height) |
226 { | 227 { |
227 if (avcodec_check_dimensions(s->avctx, width, height)) | 228 if (av_check_image_size(width, height, 0, s->avctx)) |
228 return AVERROR_INVALIDDATA; | 229 return AVERROR_INVALIDDATA; |
229 | 230 |
230 vp8_decode_flush(s->avctx); | 231 vp8_decode_flush(s->avctx); |
231 | 232 |
232 avcodec_set_dimensions(s->avctx, width, height); | 233 avcodec_set_dimensions(s->avctx, width, height); |