From 926481078b4f930ac9bb9ca2b4ab660cc9190935 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sat, 10 Nov 2012 13:03:09 +0100 Subject: lavu/opt: fix av_opt_get_key_value() API. Do not skip the end delimiter. Reserve positive return values. This is an API break, but the function was introduced less than two weeks ago. --- cmdutils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index 1c392d7c71..5cdb183cc0 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -582,6 +582,8 @@ static int init_report(const char *env) av_err2str(ret)); break; } + if (*env) + env++; count++; if (!strcmp(key, "file")) { filename_template = val; -- cgit v1.2.3