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.
This commit is contained in:
Nicolas George
2012-11-10 13:03:09 +01:00
parent 468781f828
commit 926481078b
5 changed files with 12 additions and 9 deletions

View File

@@ -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;