[FFmpeg-devel,3/4] lavf/dashenc: remove unneeded call to dash_free

Submitted by Rodger Combs on March 13, 2018, 4:46 a.m.

Details

Message ID 20180313044648.40735-3-rodger.combs@gmail.com
State Accepted
Commit 08e0f45cc88903967da5a76e18be45d7406397f7
Headers show

Commit Message

Rodger Combs March 13, 2018, 4:46 a.m.
---
 libavformat/dashenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 79d63e52d4..5689aef811 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1030,10 +1030,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)