aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-09 15:59:43 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-10 21:40:41 +0200
commitd41c93d1556e3021ebfec803e621815252afbd44 (patch)
tree6b14e2da9a9bb3224ab5f518a7ebb3fdb2414a6b /libavformat
parenta90f2265fa54ab35ee1b2058c7d6e746fd847359 (diff)
downloadffmpeg-d41c93d1556e3021ebfec803e621815252afbd44.tar.gz
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index a796c124dd..afb4d2a0c0 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -833,7 +833,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
av_dict_copy(&st->metadata, vs->streams[i]->metadata, 0);
}
- vs->packets_written = 1;
vs->start_pos = 0;
vs->new_start = 1;
@@ -848,9 +847,6 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
}
}
- vs->packets_written = 0;
- vs->init_range_length = 0;
-
if ((ret = avio_open_dyn_buf(&oc->pb)) < 0)
return ret;