Re: [FFmpeg-devel] [PATCH] lavc/cbs_h265_syntax_template: Fix memleak

2019-12-06 Thread Andriy Gelman
On Fri, 06. Dec 18:01, Andreas Rheinhardt wrote: > Andriy Gelman: > > From: Andriy Gelman > > > > payload_count is used to track the number of SEI payloads. It is also > > used to free the SEIs in cbs_h265_free_sei(). > > > > Currently, payload_count is set after for loop is completed. Hence if

Re: [FFmpeg-devel] [PATCH] lavc/cbs_h265_syntax_template: Fix memleak

2019-12-06 Thread Andreas Rheinhardt
Andriy Gelman: > From: Andriy Gelman > > payload_count is used to track the number of SEI payloads. It is also > used to free the SEIs in cbs_h265_free_sei(). > > Currently, payload_count is set after for loop is completed. Hence if > there is an error and the function exits, the payload_remains