]> git.sesse.net Git - ffmpeg/commit
avformat/http: Fix leak when using deprecated option
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 6 Mar 2021 12:55:04 +0000 (13:55 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 6 Mar 2021 23:39:32 +0000 (00:39 +0100)
commit9665fd31e8f5d9738e742fcdf0e76ea9ce76b049
treec2fae7ea792a3c1b8394bec576240a0083893885
parent2570663966482152f383bf3ad85a9db9f87197c0
avformat/http: Fix leak when using deprecated option

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>
libavformat/http.c