When the deprecated option "user-agent" was set to something different
than its default value, said option would always precede and overwrite
the ordinary user_agent option (regardless of whether it was explicitly
set) which leads to a leak of the user_agent option (which has a default
value, so the leak happens always).
Fix this by setting the same destination for both options; the last
option applied wins then.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
{"user-agent","use the \"user_agent\" option instead",OFFSET(user_agent_deprecated),AV_OPT_TYPE_STRING,{.str=DEFAULT_USER_AGENT},0,0,D|AV_OPT_FLAG_DEPRECATED},
{"user-agent","use the \"user_agent\" option instead",OFFSET(user_agent),AV_OPT_TYPE_STRING,{.str=DEFAULT_USER_AGENT},0,0,D|AV_OPT_FLAG_DEPRECATED},