OSDN Git Service

vsrc_buffer: tweak error message in init()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 3 Apr 2011 14:48:33 +0000 (16:48 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 11 Apr 2011 09:19:31 +0000 (11:19 +0200)
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.

libavfilter/vsrc_buffer.c

index 226c48e..d02b13a 100644 (file)
@@ -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) {