diff libschroedingerdec.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 7e9b2d528e59
line wrap: on
line diff
--- a/libschroedingerdec.c	Fri Aug 06 09:36:45 2010 +0000
+++ b/libschroedingerdec.c	Fri Aug 06 09:37:04 2010 +0000
@@ -169,8 +169,8 @@
     p_schro_params->format = schro_decoder_get_video_format(decoder);
 
     /* Tell FFmpeg about sequence details. */
-    if (avcodec_check_dimensions(avccontext, p_schro_params->format->width,
-                                 p_schro_params->format->height) < 0) {
+    if (av_check_image_size(p_schro_params->format->width, p_schro_params->format->height,
+                            0, avccontext) < 0) {
         av_log(avccontext, AV_LOG_ERROR, "invalid dimensions (%dx%d)\n",
                p_schro_params->format->width, p_schro_params->format->height);
         avccontext->height = avccontext->width = 0;