OSDN Git Service

Make config_input() return AVERROR(EINVAL) in place of -1.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 30 Jul 2010 11:56:01 +0000 (11:56 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 30 Jul 2010 11:56:01 +0000 (11:56 +0000)
Originally committed as revision 24595 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/vf_crop.c

index e71a77b..83cc998 100644 (file)
@@ -113,7 +113,7 @@ static int config_input(AVFilterLink *link)
         av_log(ctx, AV_LOG_ERROR,
                "Output area %d:%d:%d:%d not within the input area 0:0:%d:%d or zero-sized\n",
                crop->x, crop->y, crop->w, crop->h, link->w, link->h);
-        return -1;
+        return AVERROR(EINVAL);
     }
 
     return 0;