History

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.

Stefano Sabatini committed 15 years ago

Commit f7053dc1 parent b2893ee1 file · +1 −1Browse files

Showing the changes to libavfilter/vsrc_buffer.c (1 of 1 file). Show all

Unified · Split

libavfilter/vsrc_buffer.c+1−1
@@ -73,7 +73,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) · 72 unmodified lines
7373 (n = sscanf(args, "%d:%d:%127[^:]:%d:%d:%d:%d", &c->w, &c->h, pix_fmt_str,
7474 &c->time_base.num, &c->time_base.den,
7575 &c->pixel_aspect.num, &c->pixel_aspect.den)) != 7) {
76− av_log(ctx, AV_LOG_ERROR, "Expected 7 arguments, but only %d found in '%s'\n", n, args);
76+ av_log(ctx, AV_LOG_ERROR, "Expected 7 arguments, but %d found in '%s'\n", n, args);
7777 return AVERROR(EINVAL);
7878 }
7979 if ((c->pix_fmt = av_get_pix_fmt(pix_fmt_str)) == PIX_FMT_NONE) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t