From 08e0f45cc88903967da5a76e18be45d7406397f7 Mon Sep 17 00:00:00 2001 From: Rodger Combs Date: Wed, 14 Mar 2018 01:24:39 -0500 Subject: [PATCH] lavf/dashenc: remove unneeded call to dash_free --- libavformat/dashenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 9feb4f1afb..bdf8c8d560 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -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)