diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-12-27 14:15:21 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-12-27 14:15:21 +0400 |
commit | f1f87439e51b581aa080b2672ec5cf72198626b7 (patch) | |
tree | 2d9fdca9c812e27b831c4de898b20fadd2536652 /libavfilter/vf_thumbnail.c | |
parent | 15a2a29ba3345083c95d8a920d8950267db8a6f5 (diff) |
thumbnail: fix error code in case of invalid args.
Diffstat (limited to 'libavfilter/vf_thumbnail.c')
-rw-r--r-- | libavfilter/vf_thumbnail.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |