diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-03 16:48:33 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-11 11:19:31 +0200 |
commit | f763a7c6697bcb08321f762e7cf4cc8431678bbf (patch) | |
tree | 257d300c2e9fa72c5755eb37536c498f0dbd1e78 | |
parent | ab8cfd45f8dcff5a9d60271b30dc4437756d5985 (diff) | |
download | ffmpeg-f763a7c6697bcb08321f762e7cf4cc8431678bbf.tar.gz |
vsrc_buffer: tweak error message in init()
Change:
Expected 7 arguments, but only %d found in '%s'\n
to:
Expected 7 arguments, but %d found in '%s'\n
as the user may provide more than 7 arguments, in that case the error
is not misleading.
-rw-r--r-- | libavfilter/vsrc_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 226c48ea02..d02b13a4b8 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -120,7 +120,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) (n = sscanf(args, "%d:%d:%127[^:]:%d:%d:%d:%d", &c->w, &c->h, pix_fmt_str, &c->time_base.num, &c->time_base.den, &c->pixel_aspect.num, &c->pixel_aspect.den)) != 7) { - av_log(ctx, AV_LOG_ERROR, "Expected 7 arguments, but only %d found in '%s'\n", n, args); + av_log(ctx, AV_LOG_ERROR, "Expected 7 arguments, but %d found in '%s'\n", n, args); return AVERROR(EINVAL); } if ((c->pix_fmt = av_get_pix_fmt(pix_fmt_str)) == PIX_FMT_NONE) { |