]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dvenc: Don't zero unnecessarily
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 26 Jan 2020 07:13:11 +0000 (08:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Jan 2020 16:24:41 +0000 (17:24 +0100)
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>
libavformat/dvenc.c

index b89ad4d1c86a1cd8a4d1919a694bd415e3434e80..c71e532771eb449c1e8deb74ebd674f93e271383 100644 (file)
@@ -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) {