Commit f1f87439 authored by Clément Bœsch's avatar Clément Bœsch

thumbnail: fix error code in case of invalid args.

parent 15a2a29b
......@@ -54,7 +54,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
thumb->n_frames = 0;
av_log(ctx, AV_LOG_ERROR,
"Invalid number of frames specified (minimum is 2).\n");
return AVERROR(ENOMEM);
return AVERROR(EINVAL);
}
}
thumb->frames = av_calloc(thumb->n_frames, sizeof(*thumb->frames));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment