Mercurial > libavcodec.hg
diff imgconvert.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 | 035ca6548e29 |
children | e1ef713061ce |
line wrap: on
line diff
--- a/imgconvert.c Fri Aug 06 09:36:45 2010 +0000 +++ b/imgconvert.c Fri Aug 06 09:37:04 2010 +0000 @@ -515,7 +515,7 @@ enum PixelFormat pix_fmt, int width, int height) { - if(avcodec_check_dimensions(NULL, width, height)) + if(av_check_image_size(width, height, 0, NULL)) return -1; if (av_fill_image_linesizes(picture->linesize, pix_fmt, width)) @@ -597,7 +597,7 @@ int avpicture_get_size(enum PixelFormat pix_fmt, int width, int height) { AVPicture dummy_pict; - if(avcodec_check_dimensions(NULL, width, height)) + if(av_check_image_size(width, height, 0, NULL)) return -1; switch (pix_fmt) { case PIX_FMT_RGB8: