Commit 75bbbefb authored by stefano's avatar stefano

Make parse_key_value_pair() print an error message if a key is not

found in the context.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20779 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 848b93be
......@@ -292,6 +292,8 @@ static int parse_key_value_pair(void *ctx, const char **buf,
av_log(ctx, AV_LOG_DEBUG, "Setting value '%s' for key '%s'\n", val, key);
ret = av_set_string3(ctx, key, val, 1, NULL);
if (ret == AVERROR(ENOENT))
av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key);
av_free(key);
av_free(val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment