[FFmpeg-cvslog] r25274 - trunk/libavfilter/vsrc_nullsrc.c
stefano
subversion
Thu Sep 30 22:24:49 CEST 2010
Author: stefano
Date: Thu Sep 30 22:24:49 2010
New Revision: 25274
Log:
Return AVERROR(EINVAL) rather than -1 in case of invalid values.
Modified:
trunk/libavfilter/vsrc_nullsrc.c
Modified: trunk/libavfilter/vsrc_nullsrc.c
==============================================================================
--- trunk/libavfilter/vsrc_nullsrc.c Thu Sep 30 22:12:46 2010 (r25273)
+++ trunk/libavfilter/vsrc_nullsrc.c Thu Sep 30 22:24:49 2010 (r25274)
@@ -39,7 +39,7 @@ static int init(AVFilterContext *ctx, co
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;
More information about the ffmpeg-cvslog
mailing list