]> git.sesse.net Git - ffmpeg/commit
dashdec: Only free url string if being reused
authorBrendan McGrath <redmcg@redmandi.dyndns.org>
Sun, 21 Jan 2018 05:20:02 +0000 (13:20 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Sun, 21 Jan 2018 05:20:02 +0000 (13:20 +0800)
commit1f48c5c0671bb4f39c9dc3ec44c727f1680547b3
tree95d3ff74c2e0162921133a31ba178b3b9eea7994
parent2472dbc7a770a908a2f511ec337ec392ca3e3afa
dashdec: Only free url string if being reused

If no representation bandwidth value is set, the url value returned
by get_content_url is corrupt (as it has been freed).
This change ensures the url string is not freed unless it is about
to be reused
Changes since v1:
 1 removed the unneeded 'if' statement (as pointed out by Michael Niedermayer
 2 added comment to make it clear why the av_free was required
Signed-off-by: Brendan McGrath <redmcg@redmandi.dyndns.org>
libavformat/dashdec.c