Commit b26225a3 authored by Steven Liu's avatar Steven Liu

avformat/dashenc: remove unused check of avformat_free_context

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Reviewed-by: 's avatarJun Zhao <barryjzhao@tencent.com>
Reviewed-by: 's avatarJeyapal, Karthick <kjeyapal@akamai.com>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent e5db2e96
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment