mirror of https://github.com/FFmpeg/FFmpeg.git
When a parameter like e.g. language is contained more than once in the part of var_stream_map pertaining to a single VariantStream, the later one just overwrites the pointer to the earlier one, leading to a memleak. This commit changes this by handling the situation gracefully: The earlier string is silently freed first, so that the last one wins. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Steven Liu <lq@onvideo.cn>pull/331/head
parent
53c1458bf2
commit
5ba3a8958c
1 changed files with 7 additions and 0 deletions
Loading…
Reference in new issue