Commit 9cc88ed4 authored by Steven Liu's avatar Steven Liu

avformat/smoothstreamingenc: removed unused check of avformat_free_context

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Reviewed-by: 's avatarJun Zhao <barryjzhao@tencent.com>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 0f79a713
...@@ -183,8 +183,7 @@ static void ism_free(AVFormatContext *s) ...@@ -183,8 +183,7 @@ static void ism_free(AVFormatContext *s)
av_write_trailer(os->ctx); av_write_trailer(os->ctx);
if (os->ctx && os->ctx->pb) if (os->ctx && os->ctx->pb)
avio_context_free(&os->ctx->pb); avio_context_free(&os->ctx->pb);
if (os->ctx) avformat_free_context(os->ctx);
avformat_free_context(os->ctx);
av_freep(&os->private_str); av_freep(&os->private_str);
for (j = 0; j < os->nb_fragments; j++) for (j = 0; j < os->nb_fragments; j++)
av_freep(&os->fragments[j]); av_freep(&os->fragments[j]);
......
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