Re: [FFmpeg-devel] [PATCH 2/6] avformat/hlsenc: Remove redundant initializations

2020-05-09 Thread Steven Liu
> 2020年5月10日 上午3:15,Andreas Rheinhardt 写道: > > For every variantstream vs, vs->packets_written is set to one, only to be > set to zero a few lines below. Given that the relevant structure has > been zeroed during the allocation, this commit removes both assignments. > A redundant initialization

[FFmpeg-devel] [PATCH 2/6] avformat/hlsenc: Remove redundant initializations

2020-05-09 Thread Andreas Rheinhardt
For every variantstream vs, vs->packets_written is set to one, only to be set to zero a few lines below. Given that the relevant structure has been zeroed during the allocation, this commit removes both assignments. A redundant initialization for vs->init_range_length has been removed as well a few