Skip to content
Snippets Groups Projects
Commit ab3efd00 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Return AVERROR(EINVAL) rather than -1 in case of invalid values.

Originally committed as revision 25274 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 448ce925
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque) ...@@ -39,7 +39,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
if (priv->w <= 0 || priv->h <= 0) { if (priv->w <= 0 || priv->h <= 0) {
av_log(ctx, AV_LOG_ERROR, "Non-positive size values are not acceptable.\n"); av_log(ctx, AV_LOG_ERROR, "Non-positive size values are not acceptable.\n");
return -1; return AVERROR(EINVAL);
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment