lavf/dashenc: remove unneeded call to dash_free
authorRodger Combs <rodger.combs@gmail.com>
Wed, 14 Mar 2018 06:24:39 +0000 (01:24 -0500)
committerKarthick Jeyapal <kjeyapal@akamai.com>
Sun, 18 Mar 2018 07:06:59 +0000 (12:36 +0530)
libavformat/dashenc.c

index 9feb4f1..bdf8c8d 100644 (file)
@@ -1033,10 +1033,8 @@ static int dash_write_header(AVFormatContext *s)
     int i, ret;
     for (i = 0; i < s->nb_streams; i++) {
         OutputStream *os = &c->streams[i];
-        if ((ret = avformat_write_header(os->ctx, NULL)) < 0) {
-            dash_free(s);
+        if ((ret = avformat_write_header(os->ctx, NULL)) < 0)
             return ret;
-        }
     }
     ret = write_manifest(s, 0);
     if (!ret)