aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-16 01:04:05 +0100
committerSteven Liu <lq@chinaffmpeg.org>2019-12-23 14:05:33 +0800
commitae84305036ceced3813fb295b71d51343ffd9535 (patch)
tree7b5ae8637a28cec94e3f043150da208746fff0c2 /libavformat/segment.c
parent728c44b8613fdd2f75391b6575df4e9d47c24c63 (diff)
downloadffmpeg-ae84305036ceced3813fb295b71d51343ffd9535.tar.gz
avformat/hlsenc: Only allocate when data is known to be needed
hls_init() would allocate a buffer, although it is only needed in one of two branches that follow. This commit moves the allocation to the branch that actually needs the buffer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Steven Liu <lq@onvideo.cn>
Diffstat (limited to 'libavformat/segment.c')
0 files changed, 0 insertions, 0 deletions