summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-11-29 13:15:57 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-12-02 00:08:07 +0800
commitb26225a3c7109400f2870daf94c2c731e29976f8 (patch)
tree50f16e1887eb01fa962bfbf806ac9b279a1eb3be
parente5db2e96c02da32407c425d7805b9c32808ced3d (diff)
avformat/dashenc: remove unused check of avformat_free_context
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: Jun Zhao <barryjzhao@tencent.com> Reviewed-by: Jeyapal, Karthick <kjeyapal@akamai.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r--libavformat/dashenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index a462876c13..8c28fb6b6e 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -588,8 +588,7 @@ static void dash_free(AVFormatContext *s)
avio_close(os->ctx->pb);
}
ff_format_io_close(s, &os->out);
- if (os->ctx)
- avformat_free_context(os->ctx);
+ avformat_free_context(os->ctx);
for (j = 0; j < os->nb_segments; j++)
av_free(os->segments[j]);
av_free(os->segments);