mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
thumbnail: fix error code in case of invalid args.
This commit is contained in:
parent
15a2a29ba3
commit
f1f87439e5
@ -54,7 +54,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
thumb->n_frames = 0;
|
thumb->n_frames = 0;
|
||||||
av_log(ctx, AV_LOG_ERROR,
|
av_log(ctx, AV_LOG_ERROR,
|
||||||
"Invalid number of frames specified (minimum is 2).\n");
|
"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));
|
thumb->frames = av_calloc(thumb->n_frames, sizeof(*thumb->frames));
|
||||||
|
Loading…
Reference in New Issue
Block a user