Mercurial > libavcodec.hg
diff libvpxdec.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 | 6c1e78b8aba5 |
| children | 98004cbdda4e |
line wrap: on
line diff
--- a/libvpxdec.c Fri Aug 06 09:36:45 2010 +0000 +++ b/libvpxdec.c Fri Aug 06 09:37:04 2010 +0000 @@ -86,7 +86,7 @@ if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) { av_log(avctx, AV_LOG_INFO, "dimension change! %dx%d -> %dx%d\n", avctx->width, avctx->height, img->d_w, img->d_h); - if (avcodec_check_dimensions(avctx, img->d_w, img->d_h)) + if (av_check_image_size(img->d_w, img->d_h, 0, avctx)) return AVERROR_INVALIDDATA; avcodec_set_dimensions(avctx, img->d_w, img->d_h); }
