[FFmpeg-cvslog] r25248 - trunk/libavfilter/vf_scale.c
stefano
subversion
Tue Sep 28 16:59:10 CEST 2010
Author: stefano
Date: Tue Sep 28 16:59:09 2010
New Revision: 25248
Log:
Make init() return sensible error code rather than -1 in case of
invalid values.
Modified:
trunk/libavfilter/vf_scale.c
Modified: trunk/libavfilter/vf_scale.c
==============================================================================
--- trunk/libavfilter/vf_scale.c Tue Sep 28 16:59:06 2010 (r25247)
+++ trunk/libavfilter/vf_scale.c Tue Sep 28 16:59:09 2010 (r25248)
@@ -58,7 +58,7 @@ static av_cold int init(AVFilterContext
/* sanity check params */
if (scale->w < -1 || scale->h < -1) {
av_log(ctx, AV_LOG_ERROR, "Size values less than -1 are not acceptable.\n");
- return -1;
+ return AVERROR(EINVAL);
}
if (scale->w == -1 && scale->h == -1)
scale->w = scale->h = 0;
More information about the ffmpeg-cvslog
mailing list