Commit b1d22330 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/hdsenc: Remove redundant NULL pointer checks

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 04091552
...@@ -139,11 +139,10 @@ static void hds_free(AVFormatContext *s) ...@@ -139,11 +139,10 @@ static void hds_free(AVFormatContext *s)
return; return;
for (i = 0; i < s->nb_streams; i++) { for (i = 0; i < s->nb_streams; i++) {
OutputStream *os = &c->streams[i]; OutputStream *os = &c->streams[i];
if (os->out)
avio_closep(&os->out); avio_closep(&os->out);
if (os->ctx && os->ctx_inited) if (os->ctx && os->ctx_inited)
av_write_trailer(os->ctx); av_write_trailer(os->ctx);
if (os->ctx && os->ctx->pb) if (os->ctx)
av_freep(&os->ctx->pb); av_freep(&os->ctx->pb);
if (os->ctx) if (os->ctx)
avformat_free_context(os->ctx); avformat_free_context(os->ctx);
......
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