From f1f87439e51b581aa080b2672ec5cf72198626b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Tue, 27 Dec 2011 11:15:21 +0100 Subject: [PATCH] thumbnail: fix error code in case of invalid args. --- libavfilter/vf_thumbnail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c index b2f1e9483e..4b1b38b948 100644 --- a/libavfilter/vf_thumbnail.c +++ b/libavfilter/vf_thumbnail.c @@ -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));