• Andreas Rheinhardt's avatar
    avformat/hlsenc: Fix leak of options when initializing muxing fails · 9e4b3ccb
    Andreas Rheinhardt authored
    hls_mux_init() currently leaks an AVDictionary if opening a dynamic
    buffer fails or if avformat_init_output fails. This has been fixed by
    moving the initialization resp. the freeing of the dictionary around:
    In the former case to a place after opening the dynamic buffer, in the
    latter to a place before the check for initialization failure so that it
    is done unconditionally.
    
    Furthermore, the dictionary is now only copied and freed if the options
    in it are actually used (namely when in SEGMENT_TYPE_FMP4 mode).
    
    Finally, a similar situation in hls_start() has been fixed, too.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
    9e4b3ccb
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...