aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-26 08:13:11 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-26 17:24:41 +0100
commit556c4e38d57f467a7f9367d8edda0d48ec6f585e (patch)
tree6f375e45786b5d800bed31b112cf48de7fa2ecca /libavformat
parentf1dbfcdf895e03e3d0d8b195f3525b57426b0377 (diff)
downloadffmpeg-556c4e38d57f467a7f9367d8edda0d48ec6f585e.tar.gz
avformat/dvenc: Don't zero unnecessarily
The muxing context has already been zeroed when it was allocated, hence it is unnecessary to do it again. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dvenc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c
index b89ad4d1c8..c71e532771 100644
--- a/libavformat/dvenc.c
+++ b/libavformat/dvenc.c
@@ -305,9 +305,6 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
if (s->nb_streams > 5)
return NULL;
- c->n_ast = 0;
- c->ast[0] = c->ast[1] = c->ast[2] = c->ast[3] = NULL;
-
/* We have to sort out where audio and where video stream is */
for (i=0; i<s->nb_streams; i++) {
switch (s->streams[i]->codecpar->codec_type) {