[SCM] libav/experimental: Make config_input() return AVERROR(EINVAL) in place of -1.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:13:03 UTC 2013


The following commit has been merged in the experimental branch:
commit d6bb31a46b49ea6b057066ccefac2bd65d81b30c
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Fri Jul 30 11:56:01 2010 +0000

    Make config_input() return AVERROR(EINVAL) in place of -1.
    
    Originally committed as revision 24595 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index e71a77b..83cc998 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list