Re: [FFmpeg-devel] [PATCH 12/16] avformat/hlsenc: Unconditionally free some strings

2019-12-15 Thread Steven Liu
> 在 2019年12月16日,08:04,Andreas Rheinhardt 写道: > > hls_init() would at first allocate the vtt_basename string, then > allocate the vtt_m3u8_name string followed by several operations that > may fail and then open the subtitles' output context. Yet upon freeing, > these strings were only freed whe

[FFmpeg-devel] [PATCH 12/16] avformat/hlsenc: Unconditionally free some strings

2019-12-15 Thread Andreas Rheinhardt
hls_init() would at first allocate the vtt_basename string, then allocate the vtt_m3u8_name string followed by several operations that may fail and then open the subtitles' output context. Yet upon freeing, these strings were only freed when the subtitles' output context existed, ensuring that they