diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-30 20:24:49 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-30 20:24:49 +0000 |
commit | ab3efd0077a5b81b71819c3a792bb0bc59b9d60d (patch) | |
tree | b42a68593807d5c85cb9e8f6445f3d4ffa45d2d7 | |
parent | 448ce9258c145dfe17a4616d15677f412bef7304 (diff) | |
download | ffmpeg-ab3efd0077a5b81b71819c3a792bb0bc59b9d60d.tar.gz |
Return AVERROR(EINVAL) rather than -1 in case of invalid values.
Originally committed as revision 25274 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavfilter/vsrc_nullsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_nullsrc.c b/libavfilter/vsrc_nullsrc.c index 372cae3341..f319ceb980 100644 --- a/libavfilter/vsrc_nullsrc.c +++ b/libavfilter/vsrc_nullsrc.c @@ -39,7 +39,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque) if (priv->w <= 0 || priv->h <= 0) { av_log(ctx, AV_LOG_ERROR, "Non-positive size values are not acceptable.\n"); - return -1; + return AVERROR(EINVAL); } return 0; |