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>
This commit is contained in:
parent
e5db2e96c0
commit
b26225a3c7
@ -588,8 +588,7 @@ static void dash_free(AVFormatContext *s)
|
|||||||
avio_close(os->ctx->pb);
|
avio_close(os->ctx->pb);
|
||||||
}
|
}
|
||||||
ff_format_io_close(s, &os->out);
|
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++)
|
for (j = 0; j < os->nb_segments; j++)
|
||||||
av_free(os->segments[j]);
|
av_free(os->segments[j]);
|
||||||
av_free(os->segments);
|
av_free(os->segments);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user