Commit e880f4fb authored by Steven Liu's avatar Steven Liu

avformat/hdsenc: 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 b26225a3
......@@ -146,8 +146,7 @@ static void hds_free(AVFormatContext *s)
av_write_trailer(os->ctx);
if (os->ctx)
avio_context_free(&os->ctx->pb);
if (os->ctx)
avformat_free_context(os->ctx);
avformat_free_context(os->ctx);
av_freep(&os->metadata);
for (j = 0; j < os->nb_extra_packets; j++)
av_freep(&os->extra_packets[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