]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: Remove redundant initializations
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 9 May 2020 13:59:43 +0000 (15:59 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 10 May 2020 19:40:41 +0000 (21:40 +0200)
commitd41c93d1556e3021ebfec803e621815252afbd44
tree6b14e2da9a9bb3224ab5f518a7ebb3fdb2414a6b
parenta90f2265fa54ab35ee1b2058c7d6e746fd847359
avformat/hlsenc: Remove redundant initializations

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 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.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hlsenc.c