summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2018-03-14 01:24:39 -0500
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-03-18 12:36:59 +0530
commit08e0f45cc88903967da5a76e18be45d7406397f7 (patch)
tree10af54eb291d199e1ecb0fabed5152b8ee727da0
parent99230b7ef874129ffd3ccca0e799c66970258203 (diff)
lavf/dashenc: remove unneeded call to dash_free
-rw-r--r--libavformat/dashenc.c4
1 files changed, 1 insertions, 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)