summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-11-10 13:03:09 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-11-16 10:36:45 +0100
commit926481078b4f930ac9bb9ca2b4ab660cc9190935 (patch)
tree3e8572aa79c486e7ee9befbbcf8f8569c5846ccf /cmdutils.c
parent468781f8287b7bca8c560915a6f1ec6f37cfd4bd (diff)
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.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 2 insertions, 0 deletions
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;